couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Newson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1140) fetching _local docs by revision in URL fails
Date Mon, 25 Apr 2011 18:23:03 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13024896#comment-13024896
] 

Robert Newson commented on COUCHDB-1140:
----------------------------------------

*shrug* If we fix it, no one will report a ticket about it, which will save us time to focus
on other things. :)

perhaps local docs should simply ignore revision entirely, it doesn't make sense since they
can't replicate.

> 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 <landeiro@gmail.com> 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 <robert.newson@gmail.com>wrote:
> try ?rev="0-1"
> B.
> On 23 April 2011 22:41, Pedro Landeiro <landeiro@gmail.com> 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

Mime
View raw message