You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "eric casteleijn (JIRA)" <ji...@apache.org> on 2009/07/21 13:25:14 UTC

[jira] Created: (COUCHDB-422) PUT to _local/doc_id creates document '_local'

PUT to _local/doc_id creates document '_local'
----------------------------------------------

                 Key: COUCHDB-422
                 URL: https://issues.apache.org/jira/browse/COUCHDB-422
             Project: CouchDB
          Issue Type: Bug
    Affects Versions: 0.10
         Environment: Ubuntu 9.04
            Reporter: eric casteleijn
            Priority: Minor
             Fix For: 0.10


After davisp's revision r796246 doing a put to a document id like '_local/doc_id' results in a visible, and apparently non-local document with id '_local'. When escaping the slash as '%2F' everything works as before, and expected, i.e. a local document with the above id is created.

To test:

curl -X PUT -d '{"foo": "bar"}' http://127.0.0.1:5987/db1/_local/yokal

result:

{"ok":true,"id":"_local","rev":"1-770307fe8d4210bab8ec65c59983e03c"}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-422) PUT to _local/doc_id creates document '_local'

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743044#action_12743044 ] 

Paul Joseph Davis commented on COUCHDB-422:
-------------------------------------------

Checked this out and I can fairly easily make the patch with a caveat. Is it just me or do _local docs not allow attachments?

> PUT to _local/doc_id creates document '_local'
> ----------------------------------------------
>
>                 Key: COUCHDB-422
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-422
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 0.10
>         Environment: Ubuntu 9.04
>            Reporter: eric casteleijn
>            Assignee: Paul Joseph Davis
>            Priority: Minor
>             Fix For: 0.10
>
>
> After davisp's revision r796246 doing a put to a document id like '_local/doc_id' results in a visible, and apparently non-local document with id '_local'. When escaping the slash as '%2F' everything works as before, and expected, i.e. a local document with the above id is created.
> To test:
> curl -X PUT -d '{"foo": "bar"}' http://127.0.0.1:5987/db1/_local/yokal
> result:
> {"ok":true,"id":"_local","rev":"1-770307fe8d4210bab8ec65c59983e03c"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (COUCHDB-422) PUT to _local/doc_id creates document '_local'

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis resolved COUCHDB-422.
---------------------------------------

    Resolution: Fixed

Fixed as of r804269.

> PUT to _local/doc_id creates document '_local'
> ----------------------------------------------
>
>                 Key: COUCHDB-422
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-422
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 0.10
>         Environment: Ubuntu 9.04
>            Reporter: eric casteleijn
>            Assignee: Paul Joseph Davis
>            Priority: Minor
>             Fix For: 0.10
>
>
> After davisp's revision r796246 doing a put to a document id like '_local/doc_id' results in a visible, and apparently non-local document with id '_local'. When escaping the slash as '%2F' everything works as before, and expected, i.e. a local document with the above id is created.
> To test:
> curl -X PUT -d '{"foo": "bar"}' http://127.0.0.1:5987/db1/_local/yokal
> result:
> {"ok":true,"id":"_local","rev":"1-770307fe8d4210bab8ec65c59983e03c"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (COUCHDB-422) PUT to _local/doc_id creates document '_local'

Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Kocoloski reassigned COUCHDB-422:
--------------------------------------

    Assignee: Paul Joseph Davis

Paul, can you check into this sometime?

> PUT to _local/doc_id creates document '_local'
> ----------------------------------------------
>
>                 Key: COUCHDB-422
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-422
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 0.10
>         Environment: Ubuntu 9.04
>            Reporter: eric casteleijn
>            Assignee: Paul Joseph Davis
>            Priority: Minor
>             Fix For: 0.10
>
>
> After davisp's revision r796246 doing a put to a document id like '_local/doc_id' results in a visible, and apparently non-local document with id '_local'. When escaping the slash as '%2F' everything works as before, and expected, i.e. a local document with the above id is created.
> To test:
> curl -X PUT -d '{"foo": "bar"}' http://127.0.0.1:5987/db1/_local/yokal
> result:
> {"ok":true,"id":"_local","rev":"1-770307fe8d4210bab8ec65c59983e03c"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-422) PUT to _local/doc_id creates document '_local'

Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742939#action_12742939 ] 

Adam Kocoloski commented on COUCHDB-422:
----------------------------------------

Thanks for this report, Eric.  I think _local docs should behave like _design docs; that is, we should accept a PUT to _local/foo just fine.

> PUT to _local/doc_id creates document '_local'
> ----------------------------------------------
>
>                 Key: COUCHDB-422
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-422
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 0.10
>         Environment: Ubuntu 9.04
>            Reporter: eric casteleijn
>            Priority: Minor
>             Fix For: 0.10
>
>
> After davisp's revision r796246 doing a put to a document id like '_local/doc_id' results in a visible, and apparently non-local document with id '_local'. When escaping the slash as '%2F' everything works as before, and expected, i.e. a local document with the above id is created.
> To test:
> curl -X PUT -d '{"foo": "bar"}' http://127.0.0.1:5987/db1/_local/yokal
> result:
> {"ok":true,"id":"_local","rev":"1-770307fe8d4210bab8ec65c59983e03c"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.