nlight-jdev / jcouchdb

Automatically exported from code.google.com/p/jcouchdb
Other
0 stars 0 forks source link

createDatabase fails with code 400 Bad Request #68

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. org.jcouchdb.db.Server server = new ServerImpl("localhost");
2.    server.createDatabase("DB4");
(DB4 should not exist)

What is the expected output? What do you see instead?
I'd expext to create a new database, instead I get an error 400 bas Request 
from the server.

What version of the product are you using? On what operating system?
jcouchdb 0.11.0-1 via maven
Ubuntu 10.10
Couchdb:
  curl http://127.0.0.1:5984/ => {"couchdb":"Welcome","version":"1.0.1"}

Please provide any additional information below.
Creating a database in couchdb via 
    curl -X PUT http://127.0.0.1:5984/mycouchdb
works

Original issue reported on code.google.com by patrick.c77 on 4 Dec 2010 at 3:13

GoogleCodeExporter commented 8 years ago
curl -X PUT http://127.0.0.1:5984/DB4

gives you the same 400 error since "DB4" is no valid couchdb database name.

Original comment by ff...@gmx.de on 4 Dec 2010 at 3:47

GoogleCodeExporter commented 8 years ago
curl -X PUT http://127.0.0.1:5984/DB4

gives you the same 400 error since "DB4" is no valid couchdb database name.

Original comment by ff...@gmx.de on 4 Dec 2010 at 3:47

GoogleCodeExporter commented 8 years ago
D'OH! Sorry! Should have seen that...

Original comment by patrick.c77 on 4 Dec 2010 at 3:51