You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Brian Mitchell (JIRA)" <ji...@apache.org> on 2012/05/26 00:18:23 UTC

[jira] [Created] (COUCHDB-1483) Update handlers allow documents with empty ids to be created

Brian Mitchell created COUCHDB-1483:
---------------------------------------

             Summary: Update handlers allow documents with empty ids to be created
                 Key: COUCHDB-1483
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1483
             Project: CouchDB
          Issue Type: Bug
          Components: Database Core
    Affects Versions: 1.2, 1.3
         Environment: I've tested this on multiple versions including 1.2.0 on linux and a build from git master.
            Reporter: Brian Mitchell
            Priority: Blocker


If an update document returns a document without an _id field it will create or attempt to update a document with an id of "".

To reproduce simply invoke an update handler which does a "return [{}, 'oops']".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (COUCHDB-1483) Update handlers allow documents with empty ids to be created

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

Robert Newson reassigned COUCHDB-1483:
--------------------------------------

    Assignee: Robert Newson
    
> Update handlers allow documents with empty ids to be created
> ------------------------------------------------------------
>
>                 Key: COUCHDB-1483
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1483
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 1.2, 1.3
>         Environment: I've tested this on multiple versions including 1.2.0 on linux and a build from git master.
>            Reporter: Brian Mitchell
>            Assignee: Robert Newson
>            Priority: Blocker
>
> If an update document returns a document without an _id field it will create or attempt to update a document with an id of "".
> To reproduce simply invoke an update handler which does a "return [{}, 'oops']".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COUCHDB-1483) Update handlers allow documents with empty ids to be created

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

Luca Matteis commented on COUCHDB-1483:
---------------------------------------

Shouldn't your app avoid this by putting proper logic inside validate_doc_update functions?
                
> Update handlers allow documents with empty ids to be created
> ------------------------------------------------------------
>
>                 Key: COUCHDB-1483
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1483
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 1.2, 1.3
>         Environment: I've tested this on multiple versions including 1.2.0 on linux and a build from git master.
>            Reporter: Brian Mitchell
>            Assignee: Robert Newson
>            Priority: Blocker
>
> If an update document returns a document without an _id field it will create or attempt to update a document with an id of "".
> To reproduce simply invoke an update handler which does a "return [{}, 'oops']".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (COUCHDB-1483) Update handlers allow documents with empty ids to be created

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

Robert Newson resolved COUCHDB-1483.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3
    
> Update handlers allow documents with empty ids to be created
> ------------------------------------------------------------
>
>                 Key: COUCHDB-1483
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1483
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 1.2, 1.3
>         Environment: I've tested this on multiple versions including 1.2.0 on linux and a build from git master.
>            Reporter: Brian Mitchell
>            Assignee: Robert Newson
>            Priority: Blocker
>             Fix For: 1.3
>
>
> If an update document returns a document without an _id field it will create or attempt to update a document with an id of "".
> To reproduce simply invoke an update handler which does a "return [{}, 'oops']".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COUCHDB-1483) Update handlers allow documents with empty ids to be created

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

Robert Newson commented on COUCHDB-1483:
----------------------------------------

CouchDB should not allow empty ID's, period.
                
> Update handlers allow documents with empty ids to be created
> ------------------------------------------------------------
>
>                 Key: COUCHDB-1483
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1483
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 1.2, 1.3
>         Environment: I've tested this on multiple versions including 1.2.0 on linux and a build from git master.
>            Reporter: Brian Mitchell
>            Assignee: Robert Newson
>            Priority: Blocker
>
> If an update document returns a document without an _id field it will create or attempt to update a document with an id of "".
> To reproduce simply invoke an update handler which does a "return [{}, 'oops']".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira