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 28276EB8D for ; Mon, 25 Feb 2013 17:45:25 +0000 (UTC) Received: (qmail 1275 invoked by uid 500); 25 Feb 2013 17:45:23 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 1226 invoked by uid 500); 25 Feb 2013 17:45:23 -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 1217 invoked by uid 99); 25 Feb 2013 17:45:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 17:45:23 +0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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, 25 Feb 2013 17:45:14 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UA26r-0004Dw-2b for user@couchdb.apache.org; Mon, 25 Feb 2013 18:45:05 +0100 Received: from 70.42.29.3 ([70.42.29.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Feb 2013 18:45:05 +0100 Received: from flamz3d by 70.42.29.3 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Feb 2013 18:45:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: user@couchdb.apache.org From: Dominic Laflamme Subject: error with an update handler that inserts documents Date: Mon, 25 Feb 2013 16:18:45 +0000 (UTC) Lines: 23 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 70.42.29.3 (Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17) X-Virus-Checked: Checked by ClamAV on apache.org Hello, I am using an update handler to insert new documents. the following works fine in 1.2.0 and 0.10.0, but no longer works in 1.2.1 function(doc,req) { var data = JSON.parse(req.body); data[\'_id\'] = data.UniqueID; if ( data.timestamp == null ) { data.timestamp = new Date().getTime(); } return [ data, JSON.stringify(data)]}"); this returns "bad return value". any ideas?