From couchdb-user-return-1681-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Sat Nov 01 08:57:40 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 89748 invoked from network); 1 Nov 2008 08:57:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2008 08:57:40 -0000 Received: (qmail 52536 invoked by uid 500); 1 Nov 2008 08:57:45 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 52505 invoked by uid 500); 1 Nov 2008 08:57:45 -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 52494 invoked by uid 99); 1 Nov 2008 08:57:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Nov 2008 01:57:45 -0700 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 209.85.162.181 as permitted sender) Received: from [209.85.162.181] (HELO el-out-1112.google.com) (209.85.162.181) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Nov 2008 08:56:30 +0000 Received: by el-out-1112.google.com with SMTP id y26so1249000ele.18 for ; Sat, 01 Nov 2008 01:57:11 -0700 (PDT) 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:mime-version:content-type; bh=UuFUHzezyBXjtll8Md/FaC/MZev3PVcTswv3G1Z5F7U=; b=IO3LZRE7L5yuC3S3ujbsHEVeyREfVucgcsV54ApXC5Te8h5Ak+S+ZjuL31yEKXBJYh 6u0jQgFJTf61tnQSELfWa6gS8G87MZavpXEALQErcsF/6gjPh50C8qoF9rmCcJdYKEwm jqW8NYTkOFkM3WB/s6wGcXxZrMP3lTiGW/2ak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Mt69Nxc+VudpkJRLDOh4+/iqrhwwAATSHRWD9NWsZbEFo391z8GvlH+sFlHF0kSrB2 JFNiGCyEerTPwUa5ZE4ECqp7NU+AvcQWZkzEwueYg+RhA5AEhHB8dk7fll26CjWyPxKh Rz+ArBIwFTywXB07/HV5F2hKJIsUsQD/dCyuU= Received: by 10.151.50.11 with SMTP id c11mr22379567ybk.213.1225529831110; Sat, 01 Nov 2008 01:57:11 -0700 (PDT) Received: by 10.150.146.15 with HTTP; Sat, 1 Nov 2008 01:57:11 -0700 (PDT) Message-ID: Date: Sat, 1 Nov 2008 19:57:11 +1100 From: "Alex Chapman" To: couchdb-user@incubator.apache.org Subject: Creating views using PUT MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26827_27649351.1225529831102" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_26827_27649351.1225529831102 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, I'm trying to create a view by using an http PUT instead of POST. I'm trying to PUT 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". I have also tried url-encoding so that the url is http://localhost:5984/somedatabase/_design%2fmyview, but I get exactly the same result. Is this a bug, or am I doing something wrong? Do I have to create views using a POST? I'm using the latest version of CouchDB from svn. Thanks, Alex ------=_Part_26827_27649351.1225529831102--