incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Hendricks (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-117) HTTP status code when recreating a database
Date Sat, 06 Sep 2008 22:25:44 GMT
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.


Mime
View raw message