From user-return-18312-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Oct 13 09:03:03 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 E638A9C82 for ; Thu, 13 Oct 2011 09:03:02 +0000 (UTC) Received: (qmail 710 invoked by uid 500); 13 Oct 2011 09:03:01 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 622 invoked by uid 500); 13 Oct 2011 09:03:01 -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 596 invoked by uid 99); 13 Oct 2011 09:02:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2011 09:02:59 +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 (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.215.180 as permitted sender) Received: from [209.85.215.180] (HELO mail-ey0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2011 09:02:53 +0000 Received: by eyg5 with SMTP id 5so2137490eyg.11 for ; Thu, 13 Oct 2011 02:02:33 -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=UJprdpqtZt67+0pEkE9ExuJKyxcKZ5h2gYLScz2khVo=; b=W9owAbUV/vypwaE3VKxYDztJMpGW1ysE32BfrWopvvLXNBFHjI1zG3e/oKRFbqq9CB CtjQYkjrCh+FTrrHjqYMmtyKLr8dbqcNNX72PSXmHgUAyg0WrWpXU86WAJlxKgzsB8Zt DuTg2Lw+iKA9xHHjo9aOAYXMOfbPO8me6cldg= MIME-Version: 1.0 Received: by 10.14.11.148 with SMTP id 20mr241589eex.167.1318496552947; Thu, 13 Oct 2011 02:02:32 -0700 (PDT) Received: by 10.14.189.16 with HTTP; Thu, 13 Oct 2011 02:02:32 -0700 (PDT) In-Reply-To: References: <5EC43ABE2BBBA44CA91D3608BDE011C980F36252E2@MAILBGO.vizrt.internal> Date: Thu, 13 Oct 2011 11:02:32 +0200 Message-ID: Subject: Re: Debian couchdb-1.1.0-2b is broken From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Oct 13, 2011 at 10:07 AM, Marcello Nuccio wrote: > 2011/10/13 Benoit Chesneau : >> On Thu, Oct 13, 2011 at 12:53 AM, Panop Suvaphrom = wrote: >>> Hi, >>> >>> I know that it is not possible to update the document without current v= ersion. >>> >>> But anyway, I would like to make sure about this. >>> Is there a way to update a document without knowing its current revisio= n? >>> I would like to avoid first GETting current version=85 >> >> Just HEAD it then and get the etag. It's not possible to update >> without giving a revision to answer to your question. > > I've just tried it but I've found a problem. Here's what I do using curl: > > =A0 =A0$ curl -D- -X HEAD http://localhost:5984/_users/_design/_auth > =A0 =A0HTTP/1.1 200 OK > =A0 =A0Server: CouchDB/1.1.0 (Erlang OTP/R14B03) > =A0 =A0Etag: "1-c44fb12a2676d481d235523092e0cec4" > =A0 =A0Date: Thu, 13 Oct 2011 08:01:35 GMT > =A0 =A0Content-Type: text/plain;charset=3Dutf-8 > =A0 =A0Content-Length: 3126 > =A0 =A0Cache-Control: must-revalidate > > =A0 =A0curl: (18) transfer closed with 3126 bytes remaining to read > =A0 =A0$ echo $? > =A0 =A018 > =A0 =A0$ > > i.e.: CouchDB returns the Content-Length of the document, and curl > waits for it until it times out and exit with error 18. > > Am I doing something stupid? > Marcello > use the "-I" option :) - benoit