couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "max ogden (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1026) Database names are not encoded in the rewriter
Date Mon, 08 Aug 2011 16:48:27 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081048#comment-13081048
] 

max ogden commented on COUCHDB-1026:
------------------------------------

a more concise description of this bug: it disallows any database with a forward slash to
utilize /_rewrite. pretty sucky

> Database names are not encoded in the rewriter
> ----------------------------------------------
>
>                 Key: COUCHDB-1026
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1026
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.0.1
>            Reporter: Benjamin Young
>         Attachments: encode_db_name_in_rewriter.patch, rewrite_db_with_forward_slashes.js
>
>
> If a database includes special characters (such as / "forward slash"), then the rewriter
will fail to find the correct database and send a 404 error:
> {"error":"not_found","reason":"no_db_file"}
> The attached patch simply adds a url_encode step around DbName.

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

        

Mime
View raw message