pnagle opened a new issue #1266: Missing headers in replication documents URL: https://github.com/apache/couchdb/issues/1266 Sometimes headers go missing from replication document causing replication failure because of the unauthorized request. We are using clustered environment (replica=2 & shards=1). Also the user id and password goes missing from the target object. ## Expected Behavior The headers should be present { "doc": { "_id": "aG91bTovL3RkMTExMTExNjQwOTkyNjUzNDcxMjYwaG91bWluMTUyMjc2NDIwODA0My1jNDYxY2Y3OS5ob3VtLm1l_houm4_pull60faf6ed-4cf4-4411-bc23-9cb13f4ea118", "_rev": "1-59092a13de9ec7029f445251cad90aa6", "houmId": "****://td1111116409926534712*******.****.**", "use_checkpoints": true, "checkpoint_interval": "10", "filter": "full_replication/level_replication", "source": { "url": "http://*******.***:80/DB_NAME" "headers": { "Authorization": "Bearer <token>" } }, "target": "http://user_id:db_password@irep-couchdb:5984/userdb-7464313131313131363430393932363533343731323630686f756d696e", "createdAt": "2018-04-04T04:35:34.786Z", "lastUpdated": "2018-04-04T04:35:34.786Z", "replicationType": "_db_name_pull", "owner": "admin" } }, ## Current Behavior Headers goes missing, possible after an update of CouchDB itself. **Sample:-** { "doc": { "_id": "aG91bTovL3RkMTExMTExNjQwOTkyNjUzNDcxMjYwaG91bWluMTUyMjc2NDIwODA0My1jNDYxY2Y3OS5ob3VtLm1l_houm4_pull60faf6ed-4cf4-4411-bc23-9cb13f4ea118", "_rev": "1-59092a13de9ec7029f445251cad90aa6", "houmId": "****://td1111116409926534712*******.****.**", "use_checkpoints": true, "checkpoint_interval": "10", "filter": "full_replication/level_replication", "source": { "url": "http://*******.***:80/DB_NAME" }, "target": "http://irep-couchdb:5984/userdb-7464313131313131363430393932363533343731323630686f756d696e", "createdAt": "2018-04-04T04:35:34.786Z", "lastUpdated": "2018-04-04T04:35:34.786Z", "replicationType": "_db_name_pull", "owner": "admin" } }, ## Context Our replication is failing in between, we are trying to accomplish unhindered heavy replicaiton. ## Your Environment * Version used: 2.2.0
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
