noahshaw11 commented on issue #2246:
URL: https://github.com/apache/couchdb/issues/2246#issuecomment-878557156
After further testing, I am unsure how the author @b0wter was able to create
a database with the invalid name `00-this-[is]-{an}-inv@lid-name`. Using bash,
I receive
```
$ curl -X PUT http://localhost:15984/00-this-[is]-{an}-inv@lid-name/
-H"Authorization: Basic YWRtOnBhc3M="
{"error":"illegal_database_name","reason":"Name:
'00-this-[is]-an-inv@lid-name'. Only lowercase characters (a-z), digits (0-9),
and any of the characters _, $, (, ), +, -, and / are allowed. Must begin with
a letter."}
```
which is expected.
However, running
```
$ curl http://localhost:15984/00-this-[is]-{an}-inv@lid-name/ -X POST
-H'Authorization: Basic YWRtOnBhc3M=' -H "Content-Type: application/json" -d
'{"servings":4,"subtitle":"Delicious with fresh bread","title":"Fish Stew"}'
```
before trying to create the database does return
`{"error":"not_found","reason":"Database does not exist."}`. This is correct
since the database has not been created. Perhaps this has been fixed since the
opening of this ticket.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]