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

Robert Newson resolved COUCHDB-1189.
------------------------------------

    Resolution: Not A Problem

It sounds like our content type negotiation. We attempt to discover if the 
client is using a browser. If so, we send a redirect to an html page. If no, we 
send a 401 response code.

Please reopen if this behavior does not go away when you add "Accept: 
application/json" to your request.

> 302 reported when it should say 'you are not a server or admin"
> ---------------------------------------------------------------
>
>                 Key: COUCHDB-1189
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1189
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.0.1
>         Environment: ubuntu 11.04
>            Reporter: andrew u frank
>            Priority: Minor
>
> a request to load design doc without admin credentials get the response 302 
> -- the detail show that the missing credentials are the cause)
> i think the error handling should be fixed to produce the correct and more 
> specific error message.
> *** Exception: HTTP/1.1 302 Moved Temporarily 
> Server: CouchDB/1.0.1 (Erlang OTP/R13B)
> Location: 
> http://127.0.0.1:5984/_utils/session.html?return=%2Fnotes042e_test%2F_design%2Fttx&reason=You%20are%20not%20a%20db%20or%20server%20admin.
> Date: Tue, 07 Jun 2011 06:03:02 GMT
> Content-Type: text/plain;charset=utf-8
> Content-Length: 70
> Cache-Control: must-revalidate

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

Reply via email to