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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: