From dev-return-12085-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Tue Oct 05 20:15:03 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 61439 invoked from network); 5 Oct 2010 20:15:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Oct 2010 20:15:03 -0000 Received: (qmail 71946 invoked by uid 500); 5 Oct 2010 20:15:02 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 71855 invoked by uid 500); 5 Oct 2010 20:15: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 71847 invoked by uid 99); 5 Oct 2010 20:15:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 20:15:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 20:14:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o95KEXlj024090 for ; Tue, 5 Oct 2010 20:14:33 GMT Message-ID: <26292770.554751286309673721.JavaMail.jira@thor> Date: Tue, 5 Oct 2010 16:14:33 -0400 (EDT) From: "Tim Hart (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-909) Requests to different views at the same URL result in the same ETag MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Requests to different views at the same URL result in the same ETag ------------------------------------------------------------------- Key: COUCHDB-909 URL: https://issues.apache.org/jira/browse/COUCHDB-909 Project: CouchDB Issue Type: Bug Components: HTTP Interface Affects Versions: 1.0.1 Environment: Tested on OS X 10.6.4 Reporter: Tim Hart Priority: Critical Steps to reproduce: 1. Create a database, 'test_db' 2. Insert design document: { "_id":"_design/fetch", "language":"javascript", "views":{ "fetchKeys":{ "map": "function(doc) { var recordType = doc.type; for(var key in doc){ if(/.+_id$/.test(key)){ emit({type:recordType, fKey:doc[key]}, null); } } }" } } } 3. PUT document A @ '/test_db/parent_id' : '{"_id":"parent_id", "type":"parent"}' 4. POST document B @ '/test_db' : '{"type":"child", "parent_id":"parent_id"}' - Note the assigned ID 5. Query the view with "/test_db/_design/fetch/_view/fetchKeys?key%5Btype%5D=child&key%5Bfkey%5D=parent_id&include_docs=true" - Note the resulting ETAg 6. Delete the database 'test_db' 7. Repeat steps 1 - 5. Note the resulting ETag from the second query is the same as the first, although the results of the query are slightly different (same key, different associated document ID) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.