Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6473E217 for ; Fri, 23 Nov 2012 09:51:00 +0000 (UTC) Received: (qmail 50392 invoked by uid 500); 23 Nov 2012 09:51:00 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 50337 invoked by uid 500); 23 Nov 2012 09:50:59 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 50300 invoked by uid 99); 23 Nov 2012 09:50:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Nov 2012 09:50:58 +0000 Date: Fri, 23 Nov 2012 09:50:57 +0000 (UTC) From: "Anton Ananich (JIRA)" To: dev@couchdb.apache.org Message-ID: <756401857.18910.1353664258105.JavaMail.jiratomcat@arcas> In-Reply-To: <1779650621.18900.1353663658349.JavaMail.jiratomcat@arcas> Subject: [jira] [Closed] (COUCHDB-1610) Update function adds document with undefined ID MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anton Ananich closed COUCHDB-1610. ---------------------------------- Resolution: Duplicate Duplicate of https://issues.apache.org/jira/browse/COUCHDB-1609 > Update function adds document with undefined ID > ----------------------------------------------- > > Key: COUCHDB-1610 > URL: https://issues.apache.org/jira/browse/COUCHDB-1610 > Project: CouchDB > Issue Type: Bug > Components: Database Core, JavaScript View Server > Affects Versions: 1.2 > Environment: Mac OS X 10.8.2 > Python 2.7.2 > Reporter: Anton Ananich > > I'm using update function _design/app/_update/test, here is the body of this function: > function(doc, req) { > return [req.form, '

Hello World

']; > } > Using the HTML5 form below I submit a new object to this update function: >
> > > Date:
> Note:
>
>
> As a result I expect to get either error (id is not specified) or new document with generated ID (same as in POST request http://wiki.apache.org/couchdb/HTTP_Document_API#POST) > In fact new document is created with NULL ID. I can see it in Futon, but can not modify. The only way to get rid of this document is to drop whole the database. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira