[
https://issues.apache.org/jira/browse/COUCHDB-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409004#comment-13409004
]
Robert Newson commented on COUCHDB-1511:
----------------------------------------
The function should be examined for all errors of this clause, I doubt roles is
the only bug.
> Error message provides no help: Uncaught server error: {case_clause,{[]}}
> -------------------------------------------------------------------------
>
> Key: COUCHDB-1511
> URL: https://issues.apache.org/jira/browse/COUCHDB-1511
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.2
> Reporter: Isaac Z. Schlueter
>
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira