Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-2059

CouchDB replicator sends urls that are too long for comfort

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • Replication
    • None

    Description

      I have my couchdb behind an TLS terminator. Like most HTTP servers, it has a limit on how long URLs can be, and that limit is far smaller than the 6-12KB urls that the CouchDB replicator is sending.

      https://gist.github.com/isaacs/0010221834a3491d6481
      http://cl.ly/image/3N192G293j1R

      This is a bug, right?

      For added frustration:

      1. The replication never goes into a failed state. Just stays "triggered" forever, doing nothing, hung at 77%.
      2. The logs are indented with over 6000 spaces. I've been known to do some crazy code formatting in my time, but this is too extreme, and makes reading the log unnecessarily difficult.

      Suggestion:

      Limit the length of URLs that the replicator will use to something more reasonable, such as 1024 bytes. If more data than that is required, send it in the body of the request.

      Attachments

        Activity

          People

            Unassigned Unassigned
            isaacs Isaac Z. Schlueter
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: