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 151344D46 for ; Mon, 6 Jun 2011 22:49:20 +0000 (UTC) Received: (qmail 79933 invoked by uid 500); 6 Jun 2011 22:49:20 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 79888 invoked by uid 500); 6 Jun 2011 22:49:20 -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 79880 invoked by uid 99); 6 Jun 2011 22:49:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 22:49:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 22:49:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 370471045BA for ; Mon, 6 Jun 2011 22:48:59 +0000 (UTC) Date: Mon, 6 Jun 2011 22:48:59 +0000 (UTC) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Message-ID: <1147807329.2318.1307400539222.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1182932435.66441.1307122487551.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1184) Bulk insert of design documents fails with conflict if the documents contain "_rev" when they do not exist in the database 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-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045187#comment-13045187 ] Paul Joseph Davis commented on COUCHDB-1184: -------------------------------------------- Odd. This appears to trigger on trunk. Starting to investigate where it breaks. > Bulk insert of design documents fails with conflict if the documents contain "_rev" when they do not exist in the database > -------------------------------------------------------------------------------------------------------------------------- > > Key: COUCHDB-1184 > URL: https://issues.apache.org/jira/browse/COUCHDB-1184 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.11 > Reporter: Nuutti Kotivuori > > First a simple example to reproduce: > $ curl -X PUT http://localhost:5984/repltest > {"ok":true} > $ curl -H "Content-type: application/json" -X POST --data '{"docs":[{"_id":"_design/a","_rev":"1-2f4a8d26d103e914167052aea70a5031"}]}' http://localhost:5984/repltest/_bulk_docs > [{"id":"_design/a","error":"conflict","reason":"Document update conflict."}] > So, inserting a previously non-existing design document in to a database via bulk docs post fails the inserted design document has a "_rev" member. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira