Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 11917 invoked from network); 24 Mar 2010 13:01:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Mar 2010 13:01:28 -0000 Received: (qmail 14654 invoked by uid 500); 24 Mar 2010 12:34:48 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 14595 invoked by uid 500); 24 Mar 2010 12:34:48 -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 14587 invoked by uid 99); 24 Mar 2010 12:34:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 12:34:48 +0000 X-ASF-Spam-Status: No, hits=-1118.8 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 12:34:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5631C234C4E2 for ; Wed, 24 Mar 2010 12:34:27 +0000 (UTC) Message-ID: <1009551166.459041269434067352.JavaMail.jira@brutus.apache.org> Date: Wed, 24 Mar 2010 12:34:27 +0000 (UTC) From: "Matt Goodall (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-411) Unescaped database name in Location header in 201 response after document creation In-Reply-To: <1051961859.1247420774839.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-411?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D128= 49159#action_12849159 ]=20 Matt Goodall commented on COUCHDB-411: -------------------------------------- Looks like this is still happening or has been reintroduced since it was fi= xed. $ curl -i http://localhost:5984/foo%2Fbar -X PUT $ curl -i http://localhost:5984/foo%2Fbar -X POST -d {} HTTP/1.1 201 Created Server: CouchDB/0.11.0bf93cb9b-git (Erlang OTP/R13B) Location: http://localhost:5984/foo/bar/5ad55bcc7fdb96f570aced786f001dec Date: Wed, 24 Mar 2010 12:24:23 GMT Content-Type: text/plain;charset=3Dutf-8 Content-Length: 95 Cache-Control: must-revalidate {"ok":true,"id":"5ad55bcc7fdb96f570aced786f001dec","rev":"1-967a00dff5e02ad= d41819138abb3284d"} $ curl -i http://localhost:5984/foo/bar/5ad55bcc7fdb96f570aced786f001dec {"error":"not_found","reason":"no_db_file"} > Unescaped database name in Location header in 201 response after document= creation > -------------------------------------------------------------------------= --------- > > Key: COUCHDB-411 > URL: https://issues.apache.org/jira/browse/COUCHDB-411 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Affects Versions: 0.9 > Environment: Mac OS X 10.5.7 / CouchDBX-0.9.0-R13B > Reporter: David Z=C3=BClke > Priority: Minor > Fix For: 0.10 > > > I just did a PUT on /test_suite_db%2Fwith_slashes/ to create a new docume= nt, and the Location header in the 201 Created response had a literal slash= in the database name instead; the resulting URL of course yields a 404: > POST /test_suite_db%2Fwith_slashes/ HTTP/1.0 > Host: localhost:5984 > User-Agent: PHPCouch/1.0.0-dev > Accept: */*, application/json > Content-Length: 13 > Content-Type: application/json > {"foo":"bar"} > HTTP/1.0 201 Created > Server: CouchDB/0.9.0 (Erlang OTP/R13B) > Location: http://localhost:5984/test_suite_db/with_slashes/d578ca758745a8= 9add2c369695fcd9ec > Date: Sun, 12 Jul 2009 15:10:08 GMT > Content-Type: application/json > Content-Length: 73 > Cache-Control: must-revalidate > {"ok":true,"id":"d578ca758745a89add2c369695fcd9ec","rev":"1-1120917420"} --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.