[
https://issues.apache.org/jira/browse/COUCHDB-1882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Shorin updated COUCHDB-1882:
--------------------------------------
Description:
Steps to reproduce:
1. Replicate _users db to some target
Command:
{code}
curl -X POST http://localhost:5984/_replicate -H "Content-Type:
application/json" -d '{"source":"_users","target":"test"}'
{code}
Response:
{code}
{"error":"{worker_died,<0.1164.0>,
{{nocatch,
{forbidden,
<<"Only administrators can view design docs in the users
database.">>}},
[{couch_users_db,after_doc_read,2,
[{file,"couch_users_db.erl"},{line,92}]},
{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}
was:
Steps to reproduce:
1. Setup public_fields feature for any field
2. Replicate _users db to some target
Command:
{code}
curl -X POST http://localhost:5984/_replicate -H "Content-Type:
application/json" -d '{"source":"_users","target":"test"}'
{code}
Response:
{code}
{"error":"{worker_died,<0.1164.0>,
{{nocatch,
{forbidden,
<<"Only administrators can view design docs in the users
database.">>}},
[{couch_users_db,after_doc_read,2,
[{file,"couch_users_db.erl"},{line,92}]},
{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}
> Replication fails if CouchDB forbids direct GET to the document
> ---------------------------------------------------------------
>
> Key: COUCHDB-1882
> URL: https://issues.apache.org/jira/browse/COUCHDB-1882
> Project: CouchDB
> Issue Type: Bug
> Components: HTTP Interface, Replication
> Reporter: Alexander Shorin
>
> Steps to reproduce:
> 1. Replicate _users db to some target
> Command:
> {code}
> curl -X POST http://localhost:5984/_replicate -H "Content-Type:
> application/json" -d '{"source":"_users","target":"test"}'
> {code}
> Response:
> {code}
> {"error":"{worker_died,<0.1164.0>,
> {{nocatch,
> {forbidden,
> <<"Only administrators can view design docs in the users
> database.">>}},
> [{couch_users_db,after_doc_read,2,
> [{file,"couch_users_db.erl"},{line,92}]},
> {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