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 2582173E3 for ; Wed, 20 Jul 2011 22:46:24 +0000 (UTC) Received: (qmail 50313 invoked by uid 500); 20 Jul 2011 22:46:23 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 50088 invoked by uid 500); 20 Jul 2011 22:46:22 -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 50065 invoked by uid 99); 20 Jul 2011 22:46:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 22:46:21 +0000 X-ASF-Spam-Status: No, hits=-2001.1 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; Wed, 20 Jul 2011 22:46:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 036564B108 for ; Wed, 20 Jul 2011 22:45:58 +0000 (UTC) Date: Wed, 20 Jul 2011 22:45:58 +0000 (UTC) From: "Christopher Bonhage (JIRA)" To: dev@couchdb.apache.org Message-ID: <548527650.9675.1311201958010.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <479617811.9570.1311198238827.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1229) _update handler doesn't support slashes in doc _id 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-1229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068686#comment-13068686 ] Christopher Bonhage commented on COUCHDB-1229: ---------------------------------------------- I encountered this as well; digging through src/couch_httpd_show.erl, handle_doc_show_req/3 appears to handle the "/" character in Document IDs properly: DocParts = [DocId|Rest], DocId1 = ?l2b(string:join([?b2l(P)|| P <- DocParts], "/")), It seems like a bug that the _show handler joins the path parts back together, but the _update handler does not. Obviously / is an important character in URL paths, but I don't see how that affects the trailing path parts here: database/_design/ddoc/_update/handler/docidpart1/docidpart2 Am I wrong? > _update handler doesn't support slashes in doc _id > -------------------------------------------------- > > Key: COUCHDB-1229 > URL: https://issues.apache.org/jira/browse/COUCHDB-1229 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Affects Versions: 1.1 > Reporter: Simon Leblanc > Labels: URI, id, update > > Let's say you have: > - a doc with _id foo/bar > - a show function named baz > - a update function named baz > Then _show/baz/foo/bar is valid but _update/baz/foo/bar is not. Only _update/baz/foo%2Fbar works. > This is particularly annoying when you want to rewrite /something/* to _update/baz/foo/* (rewriting /something/* to _show/baz/foo/* works perfectly). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira