Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 93103 invoked from network); 21 Oct 2008 19:36:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Oct 2008 19:36:05 -0000 Received: (qmail 95295 invoked by uid 500); 21 Oct 2008 19:36:07 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 95251 invoked by uid 500); 21 Oct 2008 19:36:07 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 95239 invoked by uid 99); 21 Oct 2008 19:36:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 12:36:07 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 19:35:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 22637234C228 for ; Tue, 21 Oct 2008 12:35:44 -0700 (PDT) Message-ID: <823999072.1224617744126.JavaMail.jira@brutus> Date: Tue, 21 Oct 2008 12:35:44 -0700 (PDT) From: "Chris Anderson (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Resolved: (COUCHDB-117) HTTP status code when recreating a database In-Reply-To: <280263382.1220739944191.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Anderson resolved COUCHDB-117. ------------------------------------ Resolution: Fixed > HTTP status code when recreating a database > ------------------------------------------- > > Key: COUCHDB-117 > URL: https://issues.apache.org/jira/browse/COUCHDB-117 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface, Test Suite > Affects Versions: 0.9 > Environment: Mac OS X 10.4.11 > Reporter: Michael Hendricks > Priority: Minor > Attachments: 0001-Status-code-when-creating-a-database-twice.patch > > > If one accidentally tries to create a database when a database by that name already exists, CouchDB trunk (tested at revision 691322) responds with a 500 status code. In slightly older versions of the trunk, the response code was 409 and the error message helpfully indicated that a database by that name already exists. > I'll attach a patch that restores the 409 code and error message. I submitted this patch to the developer's mailing list on August 23rd. It appears not to have been noticed by the core developers, so I'm re-posting it here. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.