From dev-return-15774-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Mon Apr 25 14:56:42 2011 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 A49F42001 for ; Mon, 25 Apr 2011 14:56:42 +0000 (UTC) Received: (qmail 53035 invoked by uid 500); 25 Apr 2011 14:56:42 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 52993 invoked by uid 500); 25 Apr 2011 14:56:42 -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 52984 invoked by uid 99); 25 Apr 2011 14:56:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Apr 2011 14:56:42 +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 (athena.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; Mon, 25 Apr 2011 14:56:36 +0000 Received: from [172.20.10.2] (unknown [2.209.21.6]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.traeumt.net (Postfix) with ESMTPSA id D339C3C1BE for ; Mon, 25 Apr 2011 16:56:09 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Problems getting local doc by revision From: Jan Lehnardt In-Reply-To: Date: Mon, 25 Apr 2011 16:55:27 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <2400C69C-9160-46D7-99DF-1BE1394B8959@apache.org> References: To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1084) So we don't forget: https://issues.apache.org/jira/browse/COUCHDB-1140 Cheers Jan --=20 On 24 Apr 2011, at 21:41, Robert Newson wrote: > Hi, >=20 > Seems like a bug. You need to pass the current rev in the body of the > document. Passing it as ?rev=3D does not work at all. >=20 > B. >=20 > On 24 April 2011 19:39, Pedro Landeiro wrote: >> Already tried that but the rev argument does not accept ("), returns >> instead: >>=20 >> {"error":"unknown_error","reason":"badarg"} >>=20 >>=20 >>=20 >> On Sun, Apr 24, 2011 at 11:16 AM, Robert Newson = wrote: >>=20 >>> try ?rev=3D"0-1" >>>=20 >>> B. >>>=20 >>> On 23 April 2011 22:41, Pedro Landeiro wrote: >>>> Hi, >>>>=20 >>>> I cannot retrieve a local doc by revision. >>>>=20 >>>> I can get the doc like this: >>>> http://127.0.0.1:5984/thisisatempdb/_local/mylocaldoc >>>>=20 >>>>=20 >>>>=20 >>> = {"_id":"_local/mylocaldoc","_rev":"0-1","name":"pedro","surname":"landeiro= ","islocal":"oh >>>> yeah"} >>>>=20 >>>>=20 >>>> but if I request the some doc with the revision: >>>> http://127.0.0.1:5984/thisisatempdb/_local/mylocaldoc?rev=3D0-1 >>>>=20 >>>> {"error":"not_found","reason":"missing"} >>>>=20 >>>>=20 >>>> Am i doing some wrong? >>>>=20 >>>> Thanks. >>>>=20 >>>> -- >>>> Pedro Landeiro >>>> http://www.linkedin.com/in/pedrolandeiro >>>>=20 >>>=20 >>=20 >>=20 >>=20 >> -- >> Pedro Landeiro >> http://www.linkedin.com/in/pedrolandeiro >>=20