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

Update handlers allow documents with empty ids to be created

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.2, 1.3
    • 1.3
    • Database Core
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: