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 DA6F17972 for ; Wed, 12 Oct 2011 12:48:00 +0000 (UTC) Received: (qmail 97067 invoked by uid 500); 12 Oct 2011 12:47:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 97035 invoked by uid 500); 12 Oct 2011 12:47:59 -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 97027 invoked by uid 99); 12 Oct 2011 12:47:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2011 12:47:59 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kawazu428@googlemail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2011 12:47:52 +0000 Received: by bke5 with SMTP id 5so7715bke.11 for ; Wed, 12 Oct 2011 05:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=foOxOe46W/itX95rQPqAWxyGP4f6WK25OCalFejTodM=; b=PTYq6hswYmE+WVbDLuKR8fa0pTkzN4h0OlPWplFhnEkM4x+ZLOKVAvf3I3NS7O4+OV ZRjpjZ8fSsgbr9eBWONM0vif7ncAo0dnLcvuLbgxecTiOW4/sGXsfF8s3i2AlmJv/hF9 vcBAfIrgAcRntPT3F/oNIeI6pV++iVaXzVCxs= Received: by 10.204.140.201 with SMTP id j9mr13334320bku.13.1318420035870; Wed, 12 Oct 2011 04:47:15 -0700 (PDT) Received: from n428 (mail.planconnect.de. [212.80.236.178]) by mx.google.com with ESMTPS id a27sm1787626bku.9.2011.10.12.04.47.14 (version=SSLv3 cipher=OTHER); Wed, 12 Oct 2011 04:47:15 -0700 (PDT) Date: Wed, 12 Oct 2011 13:47:05 +0200 From: Kristian Rink To: user@couchdb.apache.org Subject: HTTP 400 in POST without _id on 1.0.2? Message-ID: <20111012134705.1e591e99@n428> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.6; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Folks; not sure this is a real problem or just a misconfiguration / misunderstanding of sorts: We do have an application built using Java and, right now, the ektorp CouchDB client. In one part obviously CouchDB documents are to be created, and in all situations the documents POSTed to the CouchDB contain no _id, expecting to have one assigned automatically. We ran this on three machines: Linux (Ubuntu 11.10 pre) workstation, CouchDB 1.0.1: Works. Testbed server (Ubuntu 11.04), CouchDB 1.0.1: Works. Another development workstation, Windows 7, CouchDB 1.0.2: Doesn't work. This is the error found in couch.log after raising log level to DEBUG: ---- snip ---- [Wed, 12 Oct 2011 11:43:03 GMT] [debug] [<0.106.0>] Document id is not a string: null [Wed, 12 Oct 2011 11:43:03 GMT] [debug] [<0.106.0>] Minor error in HTTP request: {bad_request,<<"Document id must be a string">>} [Wed, 12 Oct 2011 11:43:03 GMT] [debug] [<0.106.0>] Stacktrace: [{couch_doc,validate_docid,1}, {couch_doc,transfer_fields,2}, {couch_httpd_db,db_req,2}, {couch_httpd_db,do_db_req,2}, {couch_httpd,handle_request_int,5}, {mochiweb_http,headers,5}, {proc_lib,init_p_do_apply,3}] ---- snip ---- The (client) code is the same in all these situations, only difference seems to be the OS platform and the version of CouchDB. Does that make sense to anyone out there? TIA and all the best, Kristian -- Kristian Rink http://dm.zimmer428.net http://twitter.com/kr428