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

Update handlers can make documents with blank _id

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.0.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      OS X, built using brew

      Description

      Make the following update handler:
      '''
      function(doc, req){
      return [{}, 'done\n'];
      }
      '''

      Then do a POST to the handler. You will then have a document with a blank _id.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                codesturgeon Nick Fisher
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: