Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 48251 invoked from network); 13 Jan 2011 19:12:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2011 19:12:11 -0000 Received: (qmail 23764 invoked by uid 500); 13 Jan 2011 19:12:10 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 23695 invoked by uid 500); 13 Jan 2011 19:12:10 -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 23685 invoked by uid 99); 13 Jan 2011 19:12:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jan 2011 19:12:09 +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; Thu, 13 Jan 2011 19:12:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0DJBkEW028756 for ; Thu, 13 Jan 2011 19:11:46 GMT Message-ID: <24369503.349961294945906118.JavaMail.jira@thor> Date: Thu, 13 Jan 2011 14:11:46 -0500 (EST) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-973) Return 410 when GETing a previously deleted document (rather than 404) In-Reply-To: <26461608.49121291221790959.JavaMail.jira@thor> 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 [ https://issues.apache.org/jira/browse/COUCHDB-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981425#action_12981425 ] Paul Joseph Davis commented on COUCHDB-973: ------------------------------------------- The fact that 410's can be cached makes me even more hesitant to switch over to them because unless clients are sending the etags from possibly unknown previous entries it would seem like a bad possibility of masking a re-created document. Which seems like a reason why they would have said if we know that a resource can be recreated to use 404. We don't keep anything similar at the db level so I don't think that's really affected by this. > Return 410 when GETing a previously deleted document (rather than 404) > ---------------------------------------------------------------------- > > Key: COUCHDB-973 > URL: https://issues.apache.org/jira/browse/COUCHDB-973 > Project: CouchDB > Issue Type: Bug > Reporter: Benjamin Young > Priority: Trivial > Attachments: 410.patch > > > When you GET a nonexistent doc you get (as you should) a 404 Not Found error. However, if you GET a document that has previously existed you also get the 404 response. It would be more informative (IMO) for the 410 Gone response code to be used. 410 Gone's intention is for exactly this use case, and it could have some value to CouchDB developers who need to know the document did exist. > CouchDB is already half way there as in the body of the 404 response it does state that the document did exist (at least prior to compaction), so outputing a 410 (again, prior to compaction) would hopefully be a trivial patch. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.