Authorization failures sometimes close the connection early, other times show 
data
----------------------------------------------------------------------------------

                 Key: COUCHDB-1240
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1240
             Project: CouchDB
          Issue Type: Bug
          Components: HTTP Interface
    Affects Versions: 1.1
         Environment: iriscouch
            Reporter: Isaac Z. Schlueter
            Priority: Minor


One of the following two responses is wrong, but I'm not sure which:


$ curl -u isaacs:asdfasdf -X PUT 
https://isaacs.iriscouch.com/_users/org.couchdb.user:isaacs/-rev/43-61ee80708552de1d461baa173eed687c
 -d '{"I am":"JSON"}'
{"error":"unauthorized","reason":"Name or password is incorrect."}

$ curl -u isaacs:asdfasdf -X PUT 
https://isaacs.iriscouch.com/_users/org.couchdb.user:isaacs/-rev/43-61ee80708552de1d461baa173eed687c
 -d '{"I am":"JSON"}'
curl: (18) transfer closed with 67 bytes remaining to read

I'd prefer to get the nice JSON error response (first one), but the closed 
connection is also not terrible.  Whatever the choice here, it should be 
consistent.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to