Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 31358 invoked from network); 13 May 2008 11:29:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 May 2008 11:29:26 -0000 Received: (qmail 1627 invoked by uid 500); 13 May 2008 11:29:27 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 1593 invoked by uid 500); 13 May 2008 11:29:27 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 1582 invoked by uid 99); 13 May 2008 11:29:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 04:29:27 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Tue, 13 May 2008 11:28:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AD321234C114 for ; Tue, 13 May 2008 04:28:55 -0700 (PDT) Message-ID: <549381420.1210678135708.JavaMail.jira@brutus> Date: Tue, 13 May 2008 04:28:55 -0700 (PDT) From: "Jacob Torrey (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Commented: (COUCHDB-48) Invalid character in request causes double HTTP response -- 200 and 500 In-Reply-To: <1960030637.1209439797314.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596362#action_12596362 ] Jacob Torrey commented on COUCHDB-48: ------------------------------------- When run from SVN (r. 655820) it properly gives a 404 error: GET /test_suite_db_a/foo%da HTTP/1.1 HTTP/1.1 404 Object Not Found Transfer-Encoding: chunked Server: MochiWeb/1.0 (Any of you quaids got a smint?) Date: Tue, 13 May 2008 11:27:03 GMT Content-Type: text/plain;charset=utf-8 28 {"error":"not_found","reason":"missing"} 0 > Invalid character in request causes double HTTP response -- 200 and 500 > ----------------------------------------------------------------------- > > Key: COUCHDB-48 > URL: https://issues.apache.org/jira/browse/COUCHDB-48 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Environment: Debian (/etc/debian_version says lenny/sid, can never keep their versioning straight). Running CouchDB built from today's source. Accessing via ClouchDB. > Reporter: Eli Naeher > > I inadvertently created a document with an ID which contains the sequence "%da", which when URL-decoded is apparently not a valid UTF-8 character. Instead of receiving the appropriate error, I got an HTTP 200 followed by an HTTP 500, both in response to the same request. > Additionally, the document seems to have been created, since accessing certain pages of the list of documents in the built-in web interface causes the same 500 error to show up in the CouchDB logs. > Here is a Wireshark capture which explains the issue: > GET /mnemosyne/id-containing-the-sequence-%da HTTP/1.1 > Host: localhost:5984 > User-Agent: Drakma/0.11.5 (SBCL 1.0.12; Linux; 2.6.22-2-686; http://weitz.de/drakma/) > Accept: */* > Connection: close > HTTP/1.1 200 OK > Transfer-Encoding: chunked > Server: MochiWeb/1.0 (Any of you quaids got a smint?) > Etag: "2795559181" > Date: Tue, 29 Apr 2008 03:09:58 GMT > Content-Type: text/plain;charset=utf-8 > HTTP/1.1 500 Internal Server Error > Transfer-Encoding: chunked > Server: MochiWeb/1.0 (Any of you quaids got a smint?) > Date: Tue, 29 Apr 2008 03:09:58 GMT > Content-Type: text/plain;charset=utf-8 > 3b > {"error":"EXIT","reason":"{ucs,{bad_utf8_character_code}}"} > 0 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.