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 890A29175 for ; Fri, 2 Mar 2012 13:59:16 +0000 (UTC) Received: (qmail 96811 invoked by uid 500); 2 Mar 2012 13:59:16 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 96776 invoked by uid 500); 2 Mar 2012 13:59:16 -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 96766 invoked by uid 99); 2 Mar 2012 13:59:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 13:59:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of koeglstefan@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 13:59:09 +0000 Received: by iage36 with SMTP id e36so3127511iag.11 for ; Fri, 02 Mar 2012 05:58:49 -0800 (PST) Received-SPF: pass (google.com: domain of koeglstefan@gmail.com designates 10.50.194.232 as permitted sender) client-ip=10.50.194.232; Authentication-Results: mr.google.com; spf=pass (google.com: domain of koeglstefan@gmail.com designates 10.50.194.232 as permitted sender) smtp.mail=koeglstefan@gmail.com; dkim=pass header.i=koeglstefan@gmail.com Received: from mr.google.com ([10.50.194.232]) by 10.50.194.232 with SMTP id hz8mr1783791igc.38.1330696729210 (num_hops = 1); Fri, 02 Mar 2012 05:58:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=BQj3R0JYvwdfPIjytgENn/u+/XZ/flwJAlu4bsen18g=; b=Xe/4+TsbBahHE1PWyfE/BzjJw8clSWHpUc2+v6VgtcvM57CGWfyy+RvSBZP/wD8i1S 8lHh7GITcNr7jQsq5lfoTaq/cHx/8rYPSuIE5TTvBXXKhjhctXLz+CKjsbXEDhC++m4D GK+CdTHMS+AJuOEaqGlgzFaPEQDm5GZRS8Klowco4Hb7j1n8RVZqSFxea7OPEv/pC9VE TPNSScgqLzQQFpYOwF8ZaUXngevA+lbsD0j0k+ob2BVcgZwqzMSne68JPOOIHapfapoV aG6BWmwD7kjZBVSY0ZB8WK8YahaMhtDGfCjRfefNc0KuD1eVSg/pY+kkLQsk2I0o3aML 2ktQ== MIME-Version: 1.0 Received: by 10.50.194.232 with SMTP id hz8mr1479294igc.38.1330696729143; Fri, 02 Mar 2012 05:58:49 -0800 (PST) Received: by 10.42.174.3 with HTTP; Fri, 2 Mar 2012 05:58:49 -0800 (PST) In-Reply-To: References: <86FAED34-1BA3-4641-ACFB-FEEAC063C412@apache.org> <6994F93E-F74F-4AFB-9F3E-8D690AE58685@apache.org> Date: Fri, 2 Mar 2012 14:58:49 +0100 Message-ID: Subject: Re: Update Conflict for PUT/DELETE in _replicator From: =?ISO-8859-1?Q?Stefan_K=F6gl?= To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Mar 2, 2012 at 2:54 PM, Robert Newson wrote: > could you redo the DELETE or PUT with '-sv' so we can see what's > really being sent? Perhaps there's a weird shell thing happening > causing the rev to be sent incorrectly. $ curl -sv -X DELETE "http://stefan:*********@127.0.0.1:5984/_replicator/mygpo?rev=131-57b4da8d3163468cb0bbf4fd30c87832" * About to connect() to 127.0.0.1 port 5984 (#0) * Trying 127.0.0.1... connected * Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0) * Server auth using Basic with user 'stefan' > DELETE /_replicator/mygpo?rev=131-57b4da8d3163468cb0bbf4fd30c87832 HTTP/1.1 > Authorization: Basic ********************** > User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15 > Host: 127.0.0.1:5984 > Accept: */* > < HTTP/1.1 409 Conflict < Server: CouchDB/1.2.0 (Erlang OTP/R14B04) < Date: Fri, 02 Mar 2012 13:57:01 GMT < Content-Type: text/plain; charset=utf-8 < Content-Length: 58 < Cache-Control: must-revalidate < {"error":"conflict","reason":"Document update conflict."} * Connection #0 to host 127.0.0.1 left intact * Closing connection #0 I verified the rev before and after the DELETE to make sure it hasn't changed in between. > On 2 March 2012 13:51, Robert Newson wrote: >> tbh you should be getting this error: 'Only the replicator can edit >> replication documents that are in the triggered state'. I do. Shouldn't I be able to DELETE the replication document? -- Stefan