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 D12D6178E6 for ; Sun, 19 Apr 2015 10:51:59 +0000 (UTC) Received: (qmail 10313 invoked by uid 500); 19 Apr 2015 10:51:59 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 10253 invoked by uid 500); 19 Apr 2015 10:51:59 -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 10239 invoked by uid 99); 19 Apr 2015 10:51:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Apr 2015 10:51:59 +0000 Date: Sun, 19 Apr 2015 10:51:59 +0000 (UTC) From: "Robert Newson (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (COUCHDB-2668) Regression: attachment Etag references to document revision, not to digest 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-2668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Newson closed COUCHDB-2668. ---------------------------------- Resolution: Fixed > Regression: attachment Etag references to document revision, not to digest > -------------------------------------------------------------------------- > > Key: COUCHDB-2668 > URL: https://issues.apache.org/jira/browse/COUCHDB-2668 > Project: CouchDB > Issue Type: Bug > Security Level: public(Regular issues) > Components: Database Core, HTTP Interface > Reporter: Alexander Shorin > Assignee: Robert Newson > Priority: Blocker > Labels: regression > Fix For: 2.0.0 > > > In CouchDB 1.6.1: > {code} > $ curl -XPUT http://localhost:5984/db/doc/att -d 'Hello, CouchDB!' -H "Content-Type: text/plain" > {"ok":true,"id":"doc","rev":"1-3ead39fb9d2538602f817e0bdc00fe26"} > $ curl -XGET -v http://localhost:5984/db/doc/att > * Hostname was NOT found in DNS cache > * Trying 127.0.0.1... > * Connected to localhost (127.0.0.1) port 5984 (#0) > > GET /db/doc/att HTTP/1.1 > > User-Agent: curl/7.39.0 > > Host: localhost:5984 > > Accept: */* > > > < HTTP/1.1 200 OK > < Server: CouchDB/1.7.0 (Erlang OTP/17) > < ETag: "+4vGmBKGmQoMe7ojcTyiSA==" > < Date: Sun, 19 Apr 2015 01:17:41 GMT > < Content-Type: text/plain > < Content-Length: 15 > < Cache-Control: must-revalidate > < Accept-Ranges: none > < > * Connection #0 to host localhost left intact > Hello, CouchDB!% > {code} > In CouchDB 2.0: > {code} > $ curl -XPUT http://localhost:15984/db/doc/att -d 'Hello, CouchDB!' -H "Content-Type: text/plain" > {"ok":true,"id":"doc","rev":"1-3ead39fb9d2538602f817e0bdc00fe26"} > $ curl -XGET -v http://localhost:15984/db/doc/att > * Hostname was NOT found in DNS cache > * Trying 127.0.0.1... > * Connected to localhost (127.0.0.1) port 15984 (#0) > > GET /db/doc/att HTTP/1.1 > > User-Agent: curl/7.39.0 > > Host: localhost:15984 > > Accept: */* > > > < HTTP/1.1 200 OK > < Server: CouchDB/42c9047 (Erlang OTP/17) > < ETag: "1-3ead39fb9d2538602f817e0bdc00fe26" > < Date: Sun, 19 Apr 2015 01:14:11 GMT > < Content-Type: text/plain > < Content-Length: 15 > < Cache-Control: must-revalidate > < Accept-Ranges: none > < > * Connection #0 to host localhost left intact > Hello, CouchDB!% > {code} > If document becomes updated, but attachment does not, their Etag changes as well: > {code} > $ curl -XGET -v http://localhost:15984/db/doc/att > * Hostname was NOT found in DNS cache > * Trying 127.0.0.1... > * Connected to localhost (127.0.0.1) port 15984 (#0) > > GET /db/doc/att HTTP/1.1 > > User-Agent: curl/7.39.0 > > Host: localhost:15984 > > Accept: */* > > > < HTTP/1.1 200 OK > < Server: CouchDB/42c9047 (Erlang OTP/17) > < ETag: "3-90c8a1947115ffb2032a217ed3d3c624" > < Date: Sun, 19 Apr 2015 01:15:55 GMT > < Content-Type: text/plain > < Content-Length: 15 > < Cache-Control: must-revalidate > < Accept-Ranges: none > < > * Connection #0 to host localhost left intact > Hello, CouchDB!% > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)