Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 88962 invoked from network); 8 Nov 2008 07:29:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Nov 2008 07:29:09 -0000 Received: (qmail 50428 invoked by uid 500); 8 Nov 2008 07:29:15 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 50391 invoked by uid 500); 8 Nov 2008 07:29:14 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 50379 invoked by uid 99); 8 Nov 2008 07:29:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Nov 2008 23:29:14 -0800 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chapman.alex@gmail.com designates 74.125.46.157 as permitted sender) Received: from [74.125.46.157] (HELO yw-out-1718.google.com) (74.125.46.157) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Nov 2008 07:27:57 +0000 Received: by yw-out-1718.google.com with SMTP id 5so662772ywr.0 for ; Fri, 07 Nov 2008 23:28:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=m7rwWY+X8GWD1u6MWIbkNgMkZmOu1CLyMw6TESOP2u8=; b=qRZVP0p8wc2slXL9Ebsa3VRKORSMj43Nm+OygskSnLODbVAooF3dKObZwoC6VdLRQR zfGXT+A7021VNYosVdG0hITqYfQlgcGzh0VDfFAV6+QociHKjNdSD40VmDAFFRlCU3sx EK3UuA2Yf/cByoKPxqICLHrWTNZJO7t/K3U+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=O1RcRnDZBh/JYegxFFbH42UGNzxblgF2rQcpswiu8EiaBeJSBQheoTheq42iHL6RdY UruTAYlfoNao37fqk01S85HK0xctvBLOJvyZDeqrCGdUyGGJf+6gVSWrrPccC5GMWWGL zDKvXMU9u+panzWis/bQIVeSFi2y6PIPothOE= Received: by 10.151.10.7 with SMTP id n7mr5124589ybi.128.1226129309593; Fri, 07 Nov 2008 23:28:29 -0800 (PST) Received: by 10.150.146.15 with HTTP; Fri, 7 Nov 2008 23:28:29 -0800 (PST) Message-ID: Date: Sat, 8 Nov 2008 18:28:29 +1100 From: "Alex Chapman" To: couchdb-user@incubator.apache.org Subject: Re: Creating views using PUT In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_31436_17374648.1226129309576" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_31436_17374648.1226129309576 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline In my case it turned out that the problem was also my http library unencoding the '/' before sending the request. Maybe as a workaround for .Net you could try double-escaping the character like so: "_design%252fmyview". If you unencode that once, you get "_design%2fmyview". 2008/11/8 John Bartak > This is a follow up to the message from Nov 1 entitled "Creating views > using PUT". > > In a manner similar to the original poster, I'm trying to create a view > using an HTTP POST request. I try to post to > http://localhost:5984/somedatabase/_design/myview, but instead of creating > a document with an id of "_design/myview", it creates a document with an id > of "_design", with an attachment called "myview". The original thread > discussed encoding "/" between _design and myview as "%2F". > > Unfortunately, this technique doesn't work from .Net. The .Net Uri object > (and therefore the HttpWebRequest object) automatically unescapes the URI. > There doesn't appear to be any way to change this behavior. > > When we were running CouchDB version 0.9.0a698039 we didn't have to escape > the slash character. The latest version (0.9.0a712213) requires this > escaping. > > ------=_Part_31436_17374648.1226129309576--