Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 69C6A10CA7 for ; Wed, 4 Sep 2013 14:11:54 +0000 (UTC) Received: (qmail 19094 invoked by uid 500); 4 Sep 2013 14:11:53 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 19051 invoked by uid 500); 4 Sep 2013 14:11:52 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 19021 invoked by uid 99); 4 Sep 2013 14:11:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Sep 2013 14:11:51 +0000 Date: Wed, 4 Sep 2013 14:11:51 +0000 (UTC) From: "Alexander Shorin (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (COUCHDB-1882) Replication fails if CouchDB forbids direct GET to the document MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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