couchdb-dev mailing list archives

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


max ogden updated COUCHDB-1026:

    Attachment: rewrite_db_with_forward_slashes.js

Here is a futon test that exacerbates the issue. Included are two tests, one without a forward
slash that passes and then a copy of that test changed to use a database containing a forward
slash. The second test should fail

> Database names are not encoded in the rewriter
> ----------------------------------------------
>                 Key: COUCHDB-1026
>                 URL:
>             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:


View raw message