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

validate_doc_update with a JS error causes DB to be unmodifiable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Database Core
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: