Alexander Shorin created COUCHDB-1881:
-----------------------------------------
Summary: Replication fails if CouchDB respond with HTTP 404 on
attempt to GET the doc
Key: COUCHDB-1881
URL: https://issues.apache.org/jira/browse/COUCHDB-1881
Project: CouchDB
Issue Type: Bug
Components: HTTP Interface, Replication
Reporter: Alexander Shorin
Steps to reproduce:
1. Setup public_fields feature to share field `boo`
2. Create two users `foo` and `bar` and add `boo` field to user `foo`
3. Try to replicate docs of `foo` and `bar` to some target
Command:
{code}
curl -X POST http://localhost:5984/_replicate -H "Content-Type:
application/json" -d
'{"source":"_users","target":"test","doc_ids":["org.couchdb.user%3Afoo","org.couchdb.user%3Abar"]}'
{code}
Response:
{code}
{"error":"{worker_died,<0.378.0>,
{{nocatch,not_found},
[{couch_users_db,after_doc_read,2,
[{file,"couch_users_db.erl"},{line,107}]},
{couch_db,'-open_doc_revs_int/3-fun-0-',3,
[{file,"couch_db.erl"},{line,1178}]},
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
{couch_db,'-open_doc_revs_int/3-fun-1-',4,
[{file,"couch_db.erl"},{line,1170}]},
{lists,zipwith,3,[{file,"lists.erl"},{line,436}]},
{couch_db,open_doc_revs,4,[{file,"couch_db.erl"},{line,186}]},
{couch_replicator_api_wrap,open_doc_revs,6,
[{file,"src/couch_replicator_api_wrap.erl"},{line,185}]},
{couch_replicator_worker,fetch_doc,4,
[{file,"src/couch_replicator_worker.erl"},{line,298}]}]}}"}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira