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 2620C969C for ; Thu, 19 Jan 2012 10:55:04 +0000 (UTC) Received: (qmail 18824 invoked by uid 500); 19 Jan 2012 10:55:03 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 18726 invoked by uid 500); 19 Jan 2012 10:55:02 -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 18715 invoked by uid 99); 19 Jan 2012 10:55:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 10:55:01 +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, 19 Jan 2012 10:55:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DA4B6155404 for ; Thu, 19 Jan 2012 10:54:40 +0000 (UTC) Date: Thu, 19 Jan 2012 10:54:40 +0000 (UTC) From: "Marcello Nuccio (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1640863415.55812.1326970480907.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=13189052#comment-13189052 ] Marcello Nuccio commented on COUCHDB-1206: ------------------------------------------ This fix does not work with `_all_docs` view. Tested on CouchDB-1.1.1. > 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. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira