lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

validate_dbname does not enforce database names starting with characters #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a couchdb Server object
>>> import couchdb
>>> s = couchdb.client.Server('http://localhost:5984/')

2. Create a Database where the name doesn't start with a-z
>>> db = s['999']

What is the expected output? What do you see instead?
Should raise an exception that the database name is invalid, instead the
Database object is returned

What version of the product are you using? On what operating system?
Version 0.5. Ubuntu Linux 8.04

Please provide any additional information below.
Patch attached

Original issue reported on code.google.com by kochhar...@gmail.com on 17 Dec 2008 at 7:33

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by r173.

Original comment by cmlenz on 1 Jul 2009 at 3:14

GoogleCodeExporter commented 8 years ago
Thanks for the patch, kochhar.mw!

Original comment by cmlenz on 1 Jul 2009 at 3:14

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 9682d0eeeb.

Original comment by djc.ochtman on 3 Dec 2009 at 9:51