Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 30420 invoked from network); 30 Mar 2011 13:19:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2011 13:19:44 -0000 Received: (qmail 41839 invoked by uid 500); 30 Mar 2011 13:19:43 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 41640 invoked by uid 500); 30 Mar 2011 13:19:43 -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 41632 invoked by uid 99); 30 Mar 2011 13:19:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 13:19:43 +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; Wed, 30 Mar 2011 13:19:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B46ED8AD9F for ; Wed, 30 Mar 2011 13:19:05 +0000 (UTC) Date: Wed, 30 Mar 2011 13:19:05 +0000 (UTC) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Message-ID: <498643920.21249.1301491145735.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <17943979.241231294593826110.JavaMail.jira@thor> Subject: [jira] [Resolved] (COUCHDB-1018) trying to attach a file to a document and specifying a nonexistent revision number causes status code 500 in the HTTP response 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-1018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Joseph Davis resolved COUCHDB-1018. ---------------------------------------- Resolution: Fixed Applied in r1086944 > trying to attach a file to a document and specifying a nonexistent revision number causes status code 500 in the HTTP response > ------------------------------------------------------------------------------------------------------------------------------ > > Key: COUCHDB-1018 > URL: https://issues.apache.org/jira/browse/COUCHDB-1018 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Reporter: Klaus Trainer > Priority: Minor > Attachments: 0001-Fix-COUCHDB-1018.patch, 0001-Fix-COUCHDB-1018.patch > > > When trying to attach a file to a document and specifying a nonexistent revision number, the HTTP response's status code is 500. This status code is plainly wrong, as there is definitely no Internal Server Error in that case. > When trying to update a document body and specifying a nonexistent revision number, the HTTP response's status code is 409 (which is reasonable). > Here, the resulting HTTP status codes should be consistent, i.e., independent of the fact whether a new version of the document body or an attachment is written. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira