Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 90075 invoked from network); 11 Jul 2009 15:42:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jul 2009 15:42:30 -0000 Received: (qmail 59843 invoked by uid 500); 11 Jul 2009 15:42:39 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 59789 invoked by uid 500); 11 Jul 2009 15:42:39 -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 59779 invoked by uid 99); 11 Jul 2009 15:42:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jul 2009 15:42:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jul 2009 15:42:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 02426234C052 for ; Sat, 11 Jul 2009 08:42:15 -0700 (PDT) Message-ID: <325477556.1247326935008.JavaMail.jira@brutus> Date: Sat, 11 Jul 2009 08:42:15 -0700 (PDT) From: "Jason Davies (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-409) $.couch.saveDoc() in jquery.couch.js sets doc._id and doc._rev to undefined on error, causing a new doc to be created if the same doc is modified and saved again In-Reply-To: <300467146.1247326934868.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Davies updated COUCHDB-409: --------------------------------- Attachment: jquery.couch.saveDoc.diff > $.couch.saveDoc() in jquery.couch.js sets doc._id and doc._rev to undefined on error, causing a new doc to be created if the same doc is modified and saved again > ----------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: COUCHDB-409 > URL: https://issues.apache.org/jira/browse/COUCHDB-409 > Project: CouchDB > Issue Type: Bug > Components: Administration Console > Affects Versions: 0.9.1, 0.10 > Reporter: Jason Davies > Fix For: 0.9.1 > > Attachments: jquery.couch.saveDoc.diff > > > Simple fix attached. Recommend that we include this in 0.9.1 as it's a non-obvious annoyance that occurs when saving docs in Futon. > For example, if I try and save a doc and validation fails, and I fix the doc and save again, it will be saved with a NEW document id, since doc._id is set to undefined. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.