You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jason Smith (Created) (JIRA)" <ji...@apache.org> on 2012/03/13 09:51:38 UTC

[jira] [Created] (COUCHDB-1438) GET /// triggers a 500 error

GET /// triggers a 500 error
----------------------------

                 Key: COUCHDB-1438
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1438
             Project: CouchDB
          Issue Type: Bug
          Components: HTTP Interface
    Affects Versions: 1.2
            Reporter: Jason Smith
            Assignee: Jason Smith
            Priority: Minor


I just noticed this.

$ curl -i http://localhost:5984//
HTTP/1.1 500 Internal Server Error
Server: CouchDB/1.2.0 (Erlang OTP/R15B)
Date: Tue, 13 Mar 2012 08:48:46 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 53
Cache-Control: must-revalidate

{"error":"unknown_error","reason":"function_clause"}

That's weird. Usually CouchDB strips trailing slashes:


$ curl http://localhost:5984/x/////
{"db_name":"x","doc_count":1,...}

$ curl http://localhost:5984/x/blah/////
{"_id":"blah","_rev":"2-6c4b3bc6c2fdc5043139942dc6f1b994","_attachments":{"out.txt" ...

$ curl http://localhost:5984/x/blah////out.txt///////
Hello, world!


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COUCHDB-1438) GET /// triggers a 500 error

Posted by "Timothy Chen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255301#comment-13255301 ] 

Timothy Chen commented on COUCHDB-1438:
---------------------------------------

Are you currently working on this issue? This looks like an excellent 1st issue to tackle for a couchdb new comer like me. 
                
> GET /// triggers a 500 error
> ----------------------------
>
>                 Key: COUCHDB-1438
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1438
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.2
>            Reporter: Jason Smith
>            Assignee: Jason Smith
>            Priority: Minor
>              Labels: http
>
> I just noticed this.
> $ curl -i http://localhost:5984//
> HTTP/1.1 500 Internal Server Error
> Server: CouchDB/1.2.0 (Erlang OTP/R15B)
> Date: Tue, 13 Mar 2012 08:48:46 GMT
> Content-Type: text/plain; charset=utf-8
> Content-Length: 53
> Cache-Control: must-revalidate
> {"error":"unknown_error","reason":"function_clause"}
> That's weird. Usually CouchDB strips trailing slashes:
> $ curl http://localhost:5984/x/////
> {"db_name":"x","doc_count":1,...}
> $ curl http://localhost:5984/x/blah/////
> {"_id":"blah","_rev":"2-6c4b3bc6c2fdc5043139942dc6f1b994","_attachments":{"out.txt" ...
> $ curl http://localhost:5984/x/blah////out.txt///////
> Hello, world!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COUCHDB-1438) GET /// triggers a 500 error

Posted by "Dave Cottlehuber (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255453#comment-13255453 ] 

Dave Cottlehuber commented on COUCHDB-1438:
-------------------------------------------

@TimothyChen feel free to take a crack!
                
> GET /// triggers a 500 error
> ----------------------------
>
>                 Key: COUCHDB-1438
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1438
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.2
>            Reporter: Jason Smith
>            Assignee: Jason Smith
>            Priority: Minor
>              Labels: http
>
> I just noticed this.
> $ curl -i http://localhost:5984//
> HTTP/1.1 500 Internal Server Error
> Server: CouchDB/1.2.0 (Erlang OTP/R15B)
> Date: Tue, 13 Mar 2012 08:48:46 GMT
> Content-Type: text/plain; charset=utf-8
> Content-Length: 53
> Cache-Control: must-revalidate
> {"error":"unknown_error","reason":"function_clause"}
> That's weird. Usually CouchDB strips trailing slashes:
> $ curl http://localhost:5984/x/////
> {"db_name":"x","doc_count":1,...}
> $ curl http://localhost:5984/x/blah/////
> {"_id":"blah","_rev":"2-6c4b3bc6c2fdc5043139942dc6f1b994","_attachments":{"out.txt" ...
> $ curl http://localhost:5984/x/blah////out.txt///////
> Hello, world!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira