Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E0D238C85 for ; Mon, 8 Aug 2011 16:44:52 +0000 (UTC) Received: (qmail 98700 invoked by uid 500); 8 Aug 2011 16:44:51 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 98533 invoked by uid 500); 8 Aug 2011 16:44:51 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 98514 invoked by uid 99); 8 Aug 2011 16:44:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 16:44:50 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 16:44:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3DE8FB1D1B for ; Mon, 8 Aug 2011 16:44:27 +0000 (UTC) Date: Mon, 8 Aug 2011 16:44:27 +0000 (UTC) From: "max ogden (JIRA)" To: dev@couchdb.apache.org Message-ID: <453755648.16951.1312821867250.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <6408726.325121294868933474.JavaMail.jira@thor> Subject: [jira] [Updated] (COUCHDB-1026) Database names are not encoded in the rewriter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] 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: 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