Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1483

Update handlers allow documents with empty ids to be created

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.2, 1.3
    • Fix Version/s: 1.3
    • Component/s: Database Core
    • Labels:
      None
    • Environment:

      I've tested this on multiple versions including 1.2.0 on linux and a build from git master.

      Description

      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']".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rnewson Robert Newson
                Reporter:
                strmpnk Brian Mitchell
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: