You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/04/18 13:41:45 UTC
[GitHub] [couchdb] vosbergw opened a new issue, #3996: Cannot create database with '+' in name
vosbergw opened a new issue, #3996:
URL: https://github.com/apache/couchdb/issues/3996
[NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ )
## Description
Trying to create a database using 'curl -X PUT' or using Fauxton throws an illegal_database_name error if there is a '+' in the name.
[NOTE]: # ( Describe the problem you're encountering. )
[TIP]: # ( Do NOT give us access or passwords to your actual CouchDB! )
## Steps to Reproduce
```
curl -X PUT https://localhost:6984/test+database --cookie 'AuthSession=<session>'
{"error":"illegal_database_name","reason":"Name: 'test database'. Only lowercase characters (a-z), digits (0-9), and any of the characters _, $, (, ), +, -, and / are allowed. Must begin with a letter."}
```
Notice that in the error message the '+' is stripped from the name. The same occurs in the Fauxton error message.
[NOTE]: # ( Include commands to reproduce, if possible. curl is preferred. )
## Expected Behaviour
'+' is a valid character in the database name per the documents AND the resulting error message.
[NOTE]: # ( Tell us what you expected to happen. )
## Your Environment
* CouchDB v3.2.1
* Ubuntu 20.04.4
{"couchdb":"Welcome","version":"3.2.1","git_sha":"244d428af","uuid":"111b48e095272974fc7a1dcdb31bfad2","features":["access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}
[TIP]: # ( Include as many relevant details about your environment as possible. )
[TIP]: # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here. )
## Additional Context
[TIP]: # ( Add any other context about the problem here. )
--
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: notifications-unsubscribe@couchdb.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] big-r81 closed issue #3996: Cannot create database with '+' in name
Posted by GitBox <gi...@apache.org>.
big-r81 closed issue #3996: Cannot create database with '+' in name
URL: https://github.com/apache/couchdb/issues/3996
--
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: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] big-r81 commented on issue #3996: Cannot create database with '+' in name
Posted by GitBox <gi...@apache.org>.
big-r81 commented on issue #3996:
URL: https://github.com/apache/couchdb/issues/3996#issuecomment-1102840724
Hi,
you need to encode the `+` to `%2b`. A `+`in an url is a special char (whitespace).
Try
```bash
curl -X PUT http://127.0.0.1:15984/test%2bdatabase
```
and you get
```json
{"ok":true}
```
List all dbs:
```json
["_replicator","_users","test","test+database"]
```
--
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: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org