Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 17845 invoked from network); 28 Mar 2010 12:04:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Mar 2010 12:04:50 -0000 Received: (qmail 51111 invoked by uid 500); 28 Mar 2010 12:04:50 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 51040 invoked by uid 500); 28 Mar 2010 12:04:49 -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 51032 invoked by uid 99); 28 Mar 2010 12:04:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Mar 2010 12:04:48 +0000 X-ASF-Spam-Status: No, hits=-1155.7 required=10.0 tests=ALL_TRUSTED,AWL,NORMAL_HTTP_TO_IP,WEIRD_PORT 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; Sun, 28 Mar 2010 12:04:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ADD68234C48C for ; Sun, 28 Mar 2010 12:04:27 +0000 (UTC) Message-ID: <405789003.534241269777867711.JavaMail.jira@brutus.apache.org> Date: Sun, 28 Mar 2010 12:04:27 +0000 (UTC) From: "Robert Newson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-711) missing etag header when putting standalone attachments In-Reply-To: <1224214938.509931269613348442.JavaMail.jira@brutus.apache.org> 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-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12850660#action_12850660 ] Robert Newson commented on COUCHDB-711: --------------------------------------- I think it does make sense. The Etag is calculated from the document, attachments and history of the item, so the ETag for the document will be the same value as for all of its attachments. This patch adds consistency since you already get the Etag header in other PUT cases. With this patch, a client can expect Etag on all responses (GET, PUT, DELETE) and all modifications (PUT, DELETE) can supply its value in an If-Match header. > missing etag header when putting standalone attachments > ------------------------------------------------------- > > Key: COUCHDB-711 > URL: https://issues.apache.org/jira/browse/COUCHDB-711 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Affects Versions: 0.10.1 > Reporter: Niko Uphoff > Attachments: attachments_etags.patch, etag_for_standalone_put.diff > > > when putting standalone attachments there is no etag header in the response > _________________________________________________________________ > curl -X PUT -i http://127.0.0.1:5984/test/test/attachment \ > -H 'Content-Type: text/plain' \ > --data 'some text' > will just return > HTTP/1.1 201 Created > Server: CouchDB/0.10.1 (Erlang OTP/R13B) > Location: http://127.0.0.1:5984/test/test/attachment > Date: Fri, 26 Mar 2010 14:17:39 GMT > Content-Type: text/plain;charset=utf-8 > Content-Length: 67 > Cache-Control: must-revalidate > {"ok":true,"id":"test","rev":"1-3fed07956fe933df5a6dd8dd05a73ca7"} > _________________________________________________________________ -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.