flimzy opened a new issue #1585: /_{db}/_ensure_full_commit returns success for 
non-existent databases
URL: https://github.com/apache/couchdb/issues/1585
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   
   If I attempt to call the `_ensure_full_commit` endpoint for a database with 
a name beginning with the '_' character, I get (fake) success, rather than 404.
   
   ## Expected Behavior
   
   I expect a 404, as I get for a db with a standard name. Example:
   
       curl -X POST http://admin:abc123@localhost:6004/foo/_ensure_full_commit 
-H 'Content-Type: application/json'
       {"error":"not_found","reason":"Database does not exist."}
   
   
   
   ## Current Behavior
   
   Apparent success, even though the database `_foo` does not exist.
   
       curl -X POST http://admin:abc123@localhost:6004/_foo/_ensure_full_commit 
-H 'Content-Type: application/json'
       {"ok":true,"instance_start_time":"0"}
   
   ## Context
   
   Observed on CouchDB 2.2.0, but not on 2.1.1 and older. Tested using Docker 
images.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to