couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Isaac Z. Schlueter (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COUCHDB-1240) Authorization failures sometimes close the connection early, other times show data
Date Thu, 04 Aug 2011 23:33:34 GMT

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

Isaac Z. Schlueter updated COUCHDB-1240:
----------------------------------------

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

{code}
$ 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
{code}

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.

  was:
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.


> 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:
> {code}
> $ 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
> {code}
> 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

        

Mime
View raw message