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

validate_doc_update with a JS error causes DB to be unmodifiable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Database Core
    • None

    Description

      STR:

      1. Create a _design doc with a JS eval error, e.g.:

      "validate_doc_update":"function () { console.log(varThatDoesNotExist); }"
      

      Expected result: I can at least modify the design doc to fix the error.

      Actual result: the database can never be modified again. The only solution is to delete the whole database and create a new one.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nolanlawson Nolan Lawson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: