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

Error message provides no help: Uncaught server error: {case_clause,{[]}}

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3
    • None
    • None

    Description

      When PUTing a _users doc, if you forget the `roles:[]` field, you get this error, which doesn't help figure out the problem at all.

      Suggestion:
      1. _users docs should get a role:[] and type:"user" by default if these fields are missing.
      2. If there is an error in the _users doc, it should say "Invalid user document", or something else indicating that the problem happened because the data was bad (and not, say, because the server is crashing or views are messed up, or whatever else can happen in this crazy world.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            isaacs Isaac Z. Schlueter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment