You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Mike Wallace (JIRA)" <ji...@apache.org> on 2014/09/10 15:42:28 UTC

[jira] [Created] (COUCHDB-2326) Attempts to PUT malformed security object result in {"error":"error","reason":"no_majority"}

Mike Wallace created COUCHDB-2326:
-------------------------------------

             Summary: Attempts to PUT malformed security object result in {"error":"error","reason":"no_majority"}
                 Key: COUCHDB-2326
                 URL: https://issues.apache.org/jira/browse/COUCHDB-2326
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: BigCouch
            Reporter: Mike Wallace


Attempts to write security objects where the "admins" or "members" values are malformed will result in an HTTP 500 response with the following body:

{"error":"error","reason":"no_majority"}

This should really be an HTTP 400 response with a "bad_request" error value and a different error reason.

To reproduce:

{code}
$ curl -X PUT http://localhost:15984/test
{"ok":true}
$ curl -X PUT http://localhost:15984/test/_security -d '{"admins":[]}'
{"error":"error","reason":"no_majority"}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)