Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.2
-
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.)