couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Newson (JIRA)" <>
Subject [jira] [Resolved] (COUCHDB-1511) Error message provides no help: Uncaught server error: {case_clause,{[]}}
Date Mon, 30 Jul 2012 12:08:34 GMT


Robert Newson resolved COUCHDB-1511.

       Resolution: Fixed
    Fix Version/s: 1.3

The user will now receive a message stating that "doc.roles must exist" if it is not defined.
This, in addition to the existing test that it must be an array, should fix the issue.
> Error message provides no help: Uncaught server error: {case_clause,{[]}}
> -------------------------------------------------------------------------
>                 Key: COUCHDB-1511
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Isaac Z. Schlueter
>             Fix For: 1.3
> 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.)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message