From dev-return-22334-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Wed May 30 07:35:16 2012 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 4ABBB91DA for ; Wed, 30 May 2012 07:35:16 +0000 (UTC) Received: (qmail 67638 invoked by uid 500); 30 May 2012 07:23:41 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 67054 invoked by uid 500); 30 May 2012 07:23:31 -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 66690 invoked by uid 99); 30 May 2012 07:23:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 07:23:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 9CA6C142859 for ; Wed, 30 May 2012 07:23:23 +0000 (UTC) Date: Wed, 30 May 2012 07:23:23 +0000 (UTC) From: "Dale Harvey (JIRA)" To: dev@couchdb.apache.org Message-ID: <332582637.15043.1338362603645.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (COUCHDB-1487) If-None-Match isnt invalidated by Accept type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dale Harvey created COUCHDB-1487: ------------------------------------ Summary: If-None-Match isnt invalidated by Accept type Key: COUCHDB-1487 URL: https://issues.apache.org/jira/browse/COUCHDB-1487 Project: CouchDB Issue Type: Bug Components: HTTP Interface Reporter: Dale Harvey If-None-Match is not invalidated by the Accept header which may vary the co= ntents of the returned data (making the data cached by the client invalid) // If-None-Match returns empty body regardless of Accept $ curl -X GET "http://localhost:1234/test_suite_db1/bin_doc2?attachments=3D= true" -H 'Accept: application/json' -H 'If-None-Match: "2-14688d4a246bd2a4c= c390d998a9c5230"' ~/src/pouchdb (master) $ curl -X GET "http://localhost:1234/test_suite_db1/bin_doc2?attachments=3D= true" -H 'If-None-Match: "2-14688d4a246bd2a4cc390d998a9c5230"'~/src/pouchdb= (master) // Content differs base on Accept $ curl -X GET "http://localhost:1234/test_suite_db1/bin_doc2?attachments=3D= true" -H 'Accept: application/json'{"_id":"bin_doc2","_rev":"2-14688d4a246b= d2a4cc390d998a9c5230","_attachments":{"foo2.txt":{"content_type":"text/plai= n; charset=3DUTF-8","revpos":2,"digest":"md5-oWU+DkMWYcPGKs/F0Lic5A=3D=3D",= "data":"VGhpcyBpcyBubyBiYXNlNjQgZW5jb2RlZCB0ZXh0"},"foo.txt":{"content_type= ":"text/plain","revpos":1,"digest":"md5-cCkGbCesb17xjWYNV0GXmg=3D=3D","data= ":""}}} ~/src/pouchdb (master) $ curl -X GET "http://localhost:1234/test_suite_db1/bin_doc2?attachments=3D= true" --8b098c9b630fa64a56ba8341b89186e0 content-type: application/json {"_id":"bin_doc2","_rev":"2-14688d4a246bd2a4cc390d998a9c5230","_attachments= ":{"foo2.txt":{"content_type":"text/plain; charset=3DUTF-8","revpos":2,"dig= est":"md5-oWU+DkMWYcPGKs/F0Lic5A=3D=3D","length":30,"follows":true,"encodin= g":"gzip","encoded_length":48},"foo.txt":{"content_type":"text/plain","revp= os":1,"digest":"md5-cCkGbCesb17xjWYNV0GXmg=3D=3D","length":0,"follows":true= ,"encoding":"gzip","encoded_length":20}}} --8b098c9b630fa64a56ba8341b89186e0 ? ??,V??|????T3?=D4=BC?????=D4=8A??=3D --8b098c9b630fa64a56ba8341b89186e0 ? --8b098c9b630fa64a56ba8341b89186e0-- -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira