Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 85645 invoked from network); 18 Apr 2008 07:05:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Apr 2008 07:05:53 -0000 Received: (qmail 69208 invoked by uid 500); 18 Apr 2008 07:05:54 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 69177 invoked by uid 500); 18 Apr 2008 07:05:54 -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 Delivered-To: moderator for couchdb-dev@incubator.apache.org Received: (qmail 52349 invoked by uid 99); 18 Apr 2008 06:42:46 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jmoiron@jmoiron.net designates 66.118.163.60 as permitted sender) MIME-Version: 1.0 Date: Fri, 18 Apr 2008 03:43:35 -0400 From: jmoiron To: couchdb-dev@incubator.apache.org Subject: http interface bugs =?UTF-8?Q?=28=5Fdesign=20=26=20=5Fbulk=5Fdocs=29?= Message-ID: <8e534c1aa6935d146b878d98cddf2340@jmoiron.net> X-Sender: jmoiron@jmoiron.net User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Few issues in SVN trunk, version: "0.7.3a649361" This one found by kore_: Design doc HTTP PUT fails: PUT /blog/_design/posts HTTP/1.0 User-Agent: PycURL/7.16.4 Host: localhost:5984 Accept: */* Content-Type: application/json Content-Length: 1538 (...) Reply: HTTP/1.0 405 Method Not Allowed Server: MochiWeb/1.0 (Any of you quaids got a smint?) Date: Fri, 18 Apr 2008 06:41:20 GMT Content-Length: 0 Allow: GET,HEAD The server also sends TCP RST, which makes some libraries (like curl) very cranky. The workaround is PUT /blog/_design%2fposts ...; I'm not sure that this is intentional, but if it is, I don't think it's a good idea. The other is that POSTing to _bulk_docs is failing; it's failing my own tests as well as the unittests in python-couchdb's SVN. Looks like this: [Fri, 18 Apr 2008 07:33:34 GMT] [info] [<0.1842.0>] HTTP Error (code 500): {'EXIT', {{badmatch, {{obj,[{"type","Person"},{"name","John Doe"}]}, {obj, [{"type","Person"},{"name","Mary Jane"}]}, {obj, [{"type","City"}, {"name","Gotham City"}]}}}, [{couch_httpd,handle_db_request,3}, {couch_httpd,handle_request,2}, {mochiweb_http,headers,4}, {proc_lib,init_p,5}]}} Original posted json was: [{"type": "Person", "name": "John Doe"}, {"type": "Person", "name": "Mary Jane"}, {"type": "City", "name": "Gotham City"}] -- Jason