Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CAAEF799 for ; Thu, 11 Apr 2013 13:08:21 +0000 (UTC) Received: (qmail 72531 invoked by uid 500); 11 Apr 2013 12:59:27 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 71413 invoked by uid 500); 11 Apr 2013 12:58:58 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 71107 invoked by uid 99); 11 Apr 2013 12:58:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 12:58:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of freeformsystems@gmail.com designates 209.85.212.172 as permitted sender) Received: from [209.85.212.172] (HELO mail-wi0-f172.google.com) (209.85.212.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 12:58:36 +0000 Received: by mail-wi0-f172.google.com with SMTP id hr17so519162wib.17 for ; Thu, 11 Apr 2013 05:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=lAMrbO9TlJ5CW7TsseKT3GFVJYuzNF2C4yR4gY/RWu4=; b=u+rbnPSAq+F6JTR9zeaFN0m4/eOeIlwWti16xGD01Qom73RWZbnylFdpn1TSu500xR gUleKx+cxOsayXbAn8i+O7dmdOJJ1bqlGHLODAeWtDS777izMPIYfSmDQMFvhpIpnHFY YMJ7zVXESjYnRzsB8c192USeoVkI7nakwPqq9u+26zSeDwUE5ZmD95jSJ3Usj0aB+tzm VewYQo9NBJeo2855iPG9hfnwvxiiBB31rahwtTvEeuOobBxB3JophElOFrn2uifMc5J5 yKmLtK15f/M6YvKSUTAOMIZomFm9wagfbxK12NDUXSzTAt1xoFkKyWLU8xxymhhZUiys Vz+w== MIME-Version: 1.0 X-Received: by 10.194.57.137 with SMTP id i9mr10569465wjq.18.1365685095075; Thu, 11 Apr 2013 05:58:15 -0700 (PDT) Received: by 10.180.183.48 with HTTP; Thu, 11 Apr 2013 05:58:14 -0700 (PDT) In-Reply-To: References: Date: Thu, 11 Apr 2013 14:58:14 +0200 Message-ID: Subject: Re: Replication in admin party mode failure From: muji To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=047d7ba97d20f796e804da15566c X-Virus-Checked: Checked by ClamAV on apache.org --047d7ba97d20f796e804da15566c Content-Type: text/plain; charset=UTF-8 Great! Not a bug, just sounds like the documentation should mention this caveat. Tested and works fine with an absolute URL :) Thanks for the help. On 11 April 2013 14:17, Robert Newson wrote: > Hi, > > Use a url for both source and target and it will work. That is > "http://localhost:5984/db2" for your "target". > > Local dbnames like "foo" require you to set the user_ctx field in the > document and since you have no users or admins, you've nothing to set > it to. > > B. > > On 10 April 2013 18:07, Dave Cottlehuber wrote: > > On 10 April 2013 18:29, muji wrote: > >> Just to follow up on this if anyone is interested. > >> > >> I have just installed 1.3.0 (thanks!) and the problem still exists > >> replicating in admin party mode. > >> > >> Any ideas? Do I need to report an issue or is this expected behaviour? > >> > >> Cheers, > >> > >> -- > >> mischa (aka muji). > > > > Hi Mischa, > > > > Thanks for reporting this! > > > > The API is the same in both cases; use the _replicator endpoint if you > need to: > > > > - save the replication task between server restarts (e.g. continuous > > replication) > > - replicate the replication jobs (e.g. multi-master scenarios) > > - trigger a replication under a different user's permissions > > > > That said, if you are able to open a jira ticket[1] this is either a > > bug or a documentation fix. > > > > Your source can be just the db name: > > > > ## using replicate endpoint -- works: > > curl -X POST http://localhost:5984/_replicate > > -HContent-Type:application/json --data-binary '{ > > "_id": "myrepl", > > "source": "abc", > > "target": "def", > > "create_target": true, > > "continuous": false > > }' > > > > ## using _replicator endpoint -- doesn't: > > curl -X POST http://localhost:5984/_replicator > > -HContent-Type:application/json --data-binary '{ > > "_id": "myrepl", > > "source": "abc", > > "target": "def", > > "create_target": true, > > "continuous": false > > }' > > > > A+ > > Dave > > > > [1]: https://issues.apache.org/jira/browse/COUCHDB > -- mischa (aka muji). --047d7ba97d20f796e804da15566c--