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:43:28 UTC

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

     [ https://issues.apache.org/jira/browse/COUCHDB-2326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Wallace updated COUCHDB-2326:
----------------------------------
         Priority: Minor  (was: Major)
      Skill Level: Regular Contributors Level (Easy to Medium)
    Fix Version/s: 2.0.0

> 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
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> 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)