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 02FFF64C0 for ; Thu, 30 Jun 2011 19:53:52 +0000 (UTC) Received: (qmail 8724 invoked by uid 500); 30 Jun 2011 19:53:51 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 8254 invoked by uid 500); 30 Jun 2011 19:53:50 -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 8244 invoked by uid 99); 30 Jun 2011 19:53:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 19:53:50 +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; Thu, 30 Jun 2011 19:53:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F361743CA3C for ; Thu, 30 Jun 2011 19:53:28 +0000 (UTC) Date: Thu, 30 Jun 2011 19:53:28 +0000 (UTC) From: "Randall Leeds (JIRA)" To: dev@couchdb.apache.org Message-ID: <1566107088.6762.1309463608993.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <450864644.3399.1309374748527.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1206) View ETags may be incorrect if ?include_docs=true is specified 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-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058040#comment-13058040 ] Randall Leeds commented on COUCHDB-1206: ---------------------------------------- Oh, dang. I suppose you're right. Do what you said first. > View ETags may be incorrect if ?include_docs=true is specified > -------------------------------------------------------------- > > Key: COUCHDB-1206 > URL: https://issues.apache.org/jira/browse/COUCHDB-1206 > Project: CouchDB > Issue Type: Bug > Affects Versions: 1.1 > Reporter: Jens Alfke > Assignee: Robert Newson > Priority: Minor > Fix For: 1.1.1, 1.2 > > > Change COUCHDB-799 altered the way ETags are assigned to views, by having the ETag change only when the view index changes, not when any document changes. Unfortunately this means that a view with the "?include_docs=true" option can return an incorrect ETag. The reason is that if a document in the view is changed, but the change doesn't affect the view index, the result of the GET will change (it will contain the document's updated contents), but the ETag won't. This can result in stale data if the client uses a conditional GET, because it'll get a 304 even though the prior response is out of date. > Robert Newson's analysis on the user@ list is "I think the sanest fix is to make view etags for include_docs=true use the original algorithm, so that they always change if the database changes." -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira