couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (COUCHDB-967) CouchDB create database response error is wrong
Date Sat, 16 Apr 2011 23:06:05 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jan Lehnardt resolved COUCHDB-967.
----------------------------------

    Resolution: Not A Problem

The docs state "Note also that a / character in a DB name must be escaped when used in a URL;"


> CouchDB create database response error is wrong
> -----------------------------------------------
>
>                 Key: COUCHDB-967
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-967
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 1.0.2, 1.1, 1.2, 2.0
>         Environment: Mac OS X Snow Leopard
>            Reporter: Filippo Fadda
>            Priority: Minor
>
> When you try to create a database with a "/" inside name, the following error is returned.
For example:
> --------------------------------------------
> Database name: /invalid/name/
> --------------------------------------------
> _ using cURL _
> http://127.0.0.1:5984/invalid/name/
> HTTP Status Code: 404 Not Found
> CouchDB Error: not_found
> CouchDB Reason: no_db_file
> Now, the documentation says:
> "A database must be named with all lowercase letters (a-z), digits (0-9), or any of the
_$()+-/ characters and must end with a slash in the URL. The name has to start with a lowercase
letter (a-z). "
> But we know that a database name can't contain the "/" character, but it must end with
"/". So the documentation is wrong and the reported error is wrong too.
> CouchDB infast must report the same error provided when you try to create a database
named "Invalidname" with the first letter uppercase, like in the following example:
> --------------------------------------------
> Database name: /Invalidname/
> --------------------------------------------
> _ using cURL _
> http://127.0.0.1:5984/Invalidname/
> HTTP Status Code: 400 Bad Request
> CouchDB Error: illegal_database_name
> CouchDB Reason: Only lowercase characters (a-z), digits (0-9), and any of the characters
_, $, (, ), +, -, and / are allowed. Must begin with a letter.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message