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

Remote Replication with HTTP Auth fails on design docs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10
    • 1.0
    • Replication
    • None
    • Regular Contributors Level (Easy to Medium)

    Description

      I try to replicate a database with design documents. It fails on it. Here's the log from the server

      [info] [<0.4462.0>] 195.226.16.50 - - 'GET' /mydatabase/_changes?style=all_docs&heartbeat=true&since=0&feed=normal 200
      [info] [<0.4463.0>] 195.226.16.50 - - 'GET' /mydatabase/_design%2Fmydesign?open_revs=["3-ce4179d8efd6132c211d95e858619051"]&revs=true&latest=true 301
      [info] [<0.4465.0>] 195.226.16.50 - - 'GET' /mydatabase/_design/mydesign?open_revs=["3-ce4179d8efd6132c211d95e858619051"]&revs=true&latest=true_design%2Fmydesign?open_revs=["3-ce4179d8efd6132c211d95e858619051"]&revs=true&latest=true 401

      Looks like the redirect doesn't send the auth parameters on the second attempt (and the URL looks fishy too, but it works from the browser with the correct auth parameters)

      I start the replication with

      curl -X POST http://127.0.0.1:5984/_replicate -d '

      {"source":"http://admin:*****@example.org:5984/mydatabase/", "target":"mydatabase_rep"}

      '

      Attachments

        Activity

          People

            kocolosk Adam Kocoloski
            chregu Christian Stocker
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: