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 29C9F9890 for ; Fri, 2 Mar 2012 15:07:00 +0000 (UTC) Received: (qmail 29640 invoked by uid 500); 2 Mar 2012 15:06:59 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 29603 invoked by uid 500); 2 Mar 2012 15:06:59 -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 29595 invoked by uid 99); 2 Mar 2012 15:06:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 15:06:59 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=NORMAL_HTTP_TO_IP,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 15:06:50 +0000 Received: from [10.0.0.10] (91-64-198-154-dynip.superkabel.de [91.64.198.154]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.traeumt.net (Postfix) with ESMTPSA id B01D03CE76 for ; Fri, 2 Mar 2012 16:06:29 +0100 (CET) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: Update Conflict for PUT/DELETE in _replicator From: Jan Lehnardt In-Reply-To: Date: Fri, 2 Mar 2012 16:06:29 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <6210D68A-4FFC-4443-8939-F236B5CD9838@apache.org> References: <86FAED34-1BA3-4641-ACFB-FEEAC063C412@apache.org> <6994F93E-F74F-4AFB-9F3E-8D690AE58685@apache.org> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1257) X-Virus-Checked: Checked by ClamAV on apache.org I just created a replication doc under 1.1.1 and then copied the=20 _replicator.couch file to a 1.2.x. On update I the expected result=20 Robert also got ("Only the replicator can edit replication documents=20 that are in the triggered state.". a curl -X DELETE on the doc with=20 ?rev=3D4-abcd... (no quotes) also worked. Cheers Jan --=20 On Mar 2, 2012, at 15:34 , Robert Newson wrote: > yes, you should be able to delete it (I can, locally). Running out of > ideas but could you try double quotes around the rev? i.e, > ?rev=3D"131-57b4da8d3163468cb0bbf4fd30c87832" >=20 > B. >=20 > On 2 March 2012 14:32, Jan Lehnardt wrote: >> Was the replication doc created in a 1.1.x CouchDB? >>=20 >> Cheers >> Jan >> -- >>=20 >> On Mar 2, 2012, at 14:58 , Stefan K=F6gl wrote: >>=20 >>> 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. >>>=20 >>>=20 >>> $ curl -sv -X DELETE >>> = "http://stefan:*********@127.0.0.1:5984/_replicator/mygpo?rev=3D131-57b4da= 8d3163468cb0bbf4fd30c87832" >>> * 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=3D131-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: */* >>>>=20 >>> < 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=3Dutf-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 >>>=20 >>> I verified the rev before and after the DELETE to make sure it = hasn't >>> changed in between. >>>=20 >>>=20 >>>> 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. >>>=20 >>> Shouldn't I be able to DELETE the replication document? >>>=20 >>>=20 >>> -- Stefan >>=20