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 4A897DBD1 for ; Mon, 29 Oct 2012 07:10:32 +0000 (UTC) Received: (qmail 61568 invoked by uid 500); 29 Oct 2012 07:10:30 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 61458 invoked by uid 500); 29 Oct 2012 07:10:29 -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 61394 invoked by uid 99); 29 Oct 2012 07:10:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2012 07:10:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcdcu-couchdb-user@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2012 07:10:18 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TSjU3-0005hd-Ab for user@couchdb.apache.org; Mon, 29 Oct 2012 08:10:03 +0100 Received: from 14-202-136-129.static.tpgi.com.au ([14.202.136.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Oct 2012 08:10:03 +0100 Received: from sam by 14-202-136-129.static.tpgi.com.au with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Oct 2012 08:10:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: user@couchdb.apache.org From: Sam Stainsby Subject: literal '+' in URL when creaitng a database Date: Mon, 29 Oct 2012 07:05:59 +0000 (UTC) Lines: 25 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 14-202-136-129.static.tpgi.com.au User-Agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2) X-Virus-Checked: Checked by ClamAV on apache.org Hi all, Shouldn't this succeed (assuming appropriate permissions): curl -X PUT 'http://localhost:5984/aaa+bbb' Instead, I get the "Only lowercase characters (a-z), digits (0-9), and any of the characters _, $, (, ), +, -, and / are allowed ..." error. I understand that '+' has special significance in the query part of a URL, but not the path part, so I think the above should work. I've found with the latest Dispatch library (0.9.3) that dispatch doesn't encode the '+', which from what I've read since seems to still be a legal URL. On the other hand,, couch seems to require it to be encoded, so the following *does* succeed: curl -X PUT 'http://localhost:5984/aaa%2bbbb' resulting in a database named 'aaa+bbb'. I've checked (with wireshark) that the first query does indeed send the literal '+ character : PUT /aaa+bbb ... Cheers, Sam Stainsby.