Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B08B22869 for ; Thu, 5 May 2011 10:43:48 +0000 (UTC) Received: (qmail 40381 invoked by uid 500); 5 May 2011 10:43:46 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 40342 invoked by uid 500); 5 May 2011 10:43:46 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 40334 invoked by uid 99); 5 May 2011 10:43:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 10:43:46 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.hirst@sophos.com designates 74.202.89.161 as permitted sender) Received: from [74.202.89.161] (HELO mx4.sophos.com) (74.202.89.161) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 10:43:40 +0000 Received: from mx4.sophos.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id A5632701B8 for ; Thu, 5 May 2011 11:43:19 +0100 (BST) Received: from uk-exch2.green.sophos (uk-exch2.green.sophos [10.100.199.17]) by mx4.sophos.com (Postfix) with ESMTP id 50558701B7 for ; Thu, 5 May 2011 11:43:19 +0100 (BST) Received: from [10.181.0.194] (10.181.0.194) by uk-exch2.green.sophos (10.100.199.10) with Microsoft SMTP Server (TLS) id 8.1.340.0; Thu, 5 May 2011 11:43:18 +0100 Subject: Re: AW: URL-Encoded DELETE: " vs. %22 From: Paul Hirst To: "user@couchdb.apache.org" In-Reply-To: <5BB0C5BEFECA11468B40FB51F7856E23042A2BCA@MAIL1.virtual-identity.net> References: <5BB0C5BEFECA11468B40FB51F7856E23042A2B4D@MAIL1.virtual-identity.net> <1304589790.17972.158.camel@meerkat.green.sophos> <5BB0C5BEFECA11468B40FB51F7856E23042A2BCA@MAIL1.virtual-identity.net> Content-Type: text/plain; charset="UTF-8" Date: Thu, 5 May 2011 11:43:14 +0100 Message-ID: <1304592194.17972.161.camel@meerkat.green.sophos> MIME-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sophos.com; h=subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:content-transfer-encoding; s=global; bh=A9VGMpgwoaxhor9vKKlj183anBIcygu48GhwbGPT+w4=; b=KeDLWykywkVx4hKBUMQnNmU163027zg4mE33XXQw41vlD+pBVxmL/NfqUPW4surucsKg5vxz3hTwoD9Z8nwg0VREWSAh+zPtPlyMXEbVCmvjUyegH5yVyEEIAVzSzLmdus4uqAVgwP+oVdWC2gw0XNj5T1nQcDIzAIsUEDd+LxY= X-Virus-Checked: Checked by ClamAV on apache.org Ah ok. Never mind then. My theory is fatally flawed. On Thu, 2011-05-05 at 11:32 +0100, armin weisser wrote: > Actually I'm on windows. > > The problem occurs in Java (using Apache HttpClient) and on cmd shell. > > > -----Urspr=C3=BCngliche Nachricht----- > Von: Paul Hirst [mailto:paul.hirst@sophos.com] > Gesendet: Donnerstag, 5. Mai 2011 12:03 > An: user@couchdb.apache.org > Betreff: Re: URL-Encoded DELETE: " vs. %22 > > If you are doing this under a UNIX shell then the shell will 'eat' the qu= otes so I suspect this means that quotes are just invalid because in the fi= rst instance couch never sees them. > > Try > > echo foo"bar" > > and you'll see what I mean > > > On Thu, 2011-05-05 at 10:48 +0100, Robert Newson wrote: > > "Is this a known problem?" > > > > It is now. :) Can you file a ticket? > > > > B. > > > > On 5 May 2011 10:42, armin weisser = wrote: > > > Hi, > > > > > > i'm facing an issue with URL-Encoded DELETE Requests where double > > > quotes > > > (") are translated to %22. > > > > > > These GETS are equivalent > > > curl -X GET > > > http://localhost:5984/mydb/_design/views/_view/accounts?key=3D"4711" > > > curl -X GET > > > http://localhost:5984/mydb/_design/views/_view/accounts?key=3D%224711= % > > > 22 > > > > > > This DELETE is OK > > > curl -X DELETE > > > http://localhost:5984/mydb/4711?rev=3D"1-7511a58b76f9a9dec6a666ecc743= 02f6" > > > > > > But this one returns a 500 > > > curl -X DELETE > > > http://localhost:5984/mydb/4711?rev=3D%221-7511a58b76f9a9dec6a666ecc7= 4 > > > 302f > > > 6%22 > > > > > > Is this a known problem? > > > > > > Cheers, > > > > > > Armin > > > > > > > > > > Sophos Limited, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, = United Kingdom. > Company Reg No 2096520. VAT Reg No GB 991 2418 08. Sophos Limited, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, Un= ited Kingdom. Company Reg No 2096520. VAT Reg No GB 991 2418 08.