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 EC5C39067 for ; Tue, 3 Apr 2012 00:30:09 +0000 (UTC) Received: (qmail 40463 invoked by uid 500); 3 Apr 2012 00:30:09 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 40427 invoked by uid 500); 3 Apr 2012 00:30:09 -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 40419 invoked by uid 99); 3 Apr 2012 00:30:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 00:30:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.52] (HELO mail-pb0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 00:30:01 +0000 Received: by pbcuo15 with SMTP id uo15so5895781pbc.11 for ; Mon, 02 Apr 2012 17:29:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=ux1N0l3FOurCJzcHH2Iwgij8DjyRNgLo1AjqHDaKRmY=; b=PCLAzRgXwXX+PJ77NFF6fTLaTLhdjupsxjtJEvlUAKhwFdZc+6e5ZfQDqiB/4GGo6D F104FQM6mYdBVWYh8IJ15dcZRVmgt03shmbxpLbonNoTdPCccb1TlqKDG6eifQMEigDZ V4WJGCsIleJeiWH8CHh9oMtjBFsDkWkYZeWyyvw6Mjn+22Zwl8fsnwYgWnxnN17TyIi0 zq14Z8UoA7OWtsLnUJJ6Pjt38T3p/bK6/FLkBeS4LF3+zTjVsJcb8JZZ+HxN5cwu6maO +eGu/dLqCl6Hf5sYwdu4mMWwIY8v4m3CVei+ETLy985EzqjaNzPLnNi+s0I2ICDkkSIi jKkg== Received: by 10.68.216.3 with SMTP id om3mr24424779pbc.18.1333412979983; Mon, 02 Apr 2012 17:29:39 -0700 (PDT) Received: from wlaptop.localdomain (c-67-170-178-212.hsd1.or.comcast.net. [67.170.178.212]) by mx.google.com with ESMTPS id r6sm15054050pbl.24.2012.04.02.17.29.37 (version=SSLv3 cipher=OTHER); Mon, 02 Apr 2012 17:29:38 -0700 (PDT) Message-ID: <4F7A4470.8050101@83864.com> Date: Mon, 02 Apr 2012 17:29:36 -0700 From: Wendall Cada User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120316 Thunderbird/11.0 MIME-Version: 1.0 To: dev@couchdb.apache.org Subject: Re: [jira] [Commented] (COUCHDB-1453) Replicator fails with use_users_db = false References: <2116957743.4045.1333411298873.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2116957743.4045.1333411298873.JavaMail.tomcat@hel.zones.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmPGBOyECf1kDlYpw4hdqAFqywxuy/rOcjGL2VtM3uK7fGXCmQYOwEcP7KZAqMwTm5+5J4m Thanks Filipe for the feedback. This may be invalid, but documentation is so far behind now, I'm never sure what is expected behavior and what is a bug. Every new feature from the last 1+ years is either poorly documented, or not documented at all. Luckily, I typically use a base feature set that I've been happy with since 0.10.x. This was a case of trying a new feature, reading the documentation, and finding that it was not really documented at all. Wendall On 04/02/2012 05:01 PM, Filipe Manana (Commented) (JIRA) wrote: > [ https://issues.apache.org/jira/browse/COUCHDB-1453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244860#comment-13244860 ] > > Filipe Manana commented on COUCHDB-1453: > ---------------------------------------- > > Try adding an explicit user_ctx property to the replication document: > > { > "source": ..., > ..., > "user_ctx": { "roles": [ "_admin"] } > } > > Database creation and design document update/creation/deletion requires admin privilege. This is documented somewhere in the wiki. > >> Replicator fails with use_users_db = false >> ------------------------------------------ >> >> Key: COUCHDB-1453 >> URL: https://issues.apache.org/jira/browse/COUCHDB-1453 >> Project: CouchDB >> Issue Type: Bug >> Components: Replication >> Affects Versions: 1.2 >> Environment: Centos 6 32bit, Erlang R14B, Spidermonkey 1.8.5 >> Reporter: Wendall Cada >> >> If I create a new replication document in _replicate like this: >> { >> "source": "http://localhost:5990/users", >> "target": "users_backup", >> "create_target": true, >> "continuous": true >> } >> Creation of DB fails with: >> "unauthorized to access or create database users_backup" >> If I manually create this database, and set create_target to false, replication completes, but generates errors while processing the update_sequence like this: >> Replicator: couldn't write document `_design/lck`, revision `2-8edc91dec975f893efdc6f440286c79e`, to target database `users_backup`. Error: `unauthorized`, reason: `You are not a db or server admin.`. > -- > This message is automatically generated by JIRA. > If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa > For more information on JIRA, see: http://www.atlassian.com/software/jira > >