From user-return-17757-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Aug 31 23:38:53 2011 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 B1D387CF0 for ; Wed, 31 Aug 2011 23:38:53 +0000 (UTC) Received: (qmail 46082 invoked by uid 500); 31 Aug 2011 23:38:51 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 46036 invoked by uid 500); 31 Aug 2011 23:38:50 -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 46027 invoked by uid 99); 31 Aug 2011 23:38:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2011 23:38:50 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gert.cuykens@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2011 23:38:45 +0000 Received: by qyk31 with SMTP id 31so4578119qyk.11 for ; Wed, 31 Aug 2011 16:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=MEBDyqxxliLRWSqNbwvEjZuvwP/S+tTrK8I9A2YpB9k=; b=IC2EtnxrAiUEGFNMZknHUvN0vON81n+BUODIlQiUypgVS2kisijtr72oOUc6m5Gq+h NvoqWwU4Dj55l+HQkvynkalOsayQ02Xg4YhVV+d6Mo7BeHTV3DaodFb6GLvqQ4VnwOCz kYmc7Y9oOJzVtNdF+8/A6qs66zhjauz8vdOvY= MIME-Version: 1.0 Received: by 10.229.212.77 with SMTP id gr13mr846513qcb.19.1314833904652; Wed, 31 Aug 2011 16:38:24 -0700 (PDT) Received: by 10.229.225.195 with HTTP; Wed, 31 Aug 2011 16:38:24 -0700 (PDT) In-Reply-To: <06777FA6-5DC4-42C2-935F-9AC94301DDB8@couchbase.com> References: <718B6647-CBFE-4024-857A-221C1C17CA24@couchbase.com> <06777FA6-5DC4-42C2-935F-9AC94301DDB8@couchbase.com> Date: Thu, 1 Sep 2011 01:38:24 +0200 Message-ID: Subject: Re: url rev=x overwrite document _rev:y From: Gert Cuykens To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Sep 1, 2011 at 1:22 AM, Jens Alfke wrote: > > On Aug 31, 2011, at 4:17 PM, Gert Cuykens wrote: > > Yes, exactly it will tremendously improve and shorten my client code. > > Tremendously? I ran into this issue as well when writing my own client li= brary [CouchCocoa] but it was pretty easy to work around by simply insertin= g a _rev key into the JSON before writing it into the HTTP request. I think= it added three or four lines of Objective-C code to my method that saves d= ocuments. > > Can you implement this in the development branch pleas. > > Sorry, I don=E2=80=99t work on the implementation of CouchDB itself. You = should file a bug/enhancement request. > > =E2=80=94Jens > I also suggest _id get replaced by the url too, but that is currently happening already as far as I can test. I strongly believe json bodies like this should never contain _id's and _rev's I will try to submit this at https://issues.apache.org/jira/browse/COUCHDB thanks. Never the less the same should also apply too couchbase :)