From dev-return-15775-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Mon Apr 25 17:37: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 793902C6A for ; Mon, 25 Apr 2011 17:37:42 +0000 (UTC) Received: (qmail 38326 invoked by uid 500); 25 Apr 2011 17:37:42 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 38244 invoked by uid 500); 25 Apr 2011 17:37:41 -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 38234 invoked by uid 99); 25 Apr 2011 17:37:41 -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 17:37:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,T_RP_MATCHES_RCVD,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Apr 2011 17:37:40 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 50E94B3557 for ; Mon, 25 Apr 2011 17:37:03 +0000 (UTC) Date: Mon, 25 Apr 2011 17:37:03 +0000 (UTC) From: "Damien Katz (JIRA)" To: dev@couchdb.apache.org Message-ID: <425901414.199.1303753023328.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <875903860.79888.1303743305902.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1140) fetching _local docs by revision in URL fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13024871#comment-13024871 ] Damien Katz commented on COUCHDB-1140: -------------------------------------- I don't consider this a bug as we don't store previous revisions of local docs like we do for regular docs (and technically, getting docs by older revision wasn't every really supposed to be a feature). The error message could probably be better here though. > fetching _local docs by revision in URL fails > --------------------------------------------- > > Key: COUCHDB-1140 > URL: https://issues.apache.org/jira/browse/COUCHDB-1140 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Affects Versions: 1.0.2, 1.1 > Reporter: Jan Lehnardt > Priority: Minor > > Via dev@ > Hi, > Seems like a bug. You need to pass the current rev in the body of the > document. Passing it as ?rev= does not work at all. > B. > On 24 April 2011 19:39, Pedro Landeiro wrote: > Already tried that but the rev argument does not accept ("), returns > instead: > {"error":"unknown_error","reason":"badarg"} > On Sun, Apr 24, 2011 at 11:16 AM, Robert Newson wrote: > try ?rev="0-1" > B. > On 23 April 2011 22:41, Pedro Landeiro wrote: > Hi, > I cannot retrieve a local doc by revision. > I can get the doc like this: > http://127.0.0.1:5984/thisisatempdb/_local/mylocaldoc > {"_id":"_local/mylocaldoc","_rev":"0-1","name":"pedro","surname":"landeiro","islocal":"oh > yeah"} > but if I request the some doc with the revision: > http://127.0.0.1:5984/thisisatempdb/_local/mylocaldoc?rev=0-1 > {"error":"not_found","reason":"missing"} > Am i doing some wrong? > Thanks. > -- > Pedro Landeiro > http://www.linkedin.com/in/pedrolandeiro > -- > Pedro Landeiro > http://www.linkedin.com/in/pedrolandeiro -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira