You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Jonathan Hall (JIRA)" <ji...@apache.org> on 2017/04/06 03:27:42 UTC

[jira] [Created] (COUCHDB-3362) DELETE attachment on non-existing document creates the document, rather than returning 404

Jonathan Hall created COUCHDB-3362:
--------------------------------------

             Summary: DELETE attachment on non-existing document creates the document, rather than returning 404
                 Key: COUCHDB-3362
                 URL: https://issues.apache.org/jira/browse/COUCHDB-3362
             Project: CouchDB
          Issue Type: Bug
            Reporter: Jonathan Hall


To reproduce:

Create an emtpy database:
curl -v -X PUT http://admin:abc123@localhost:6001/new

Then try to delete an attachment from a (non-existant) document:
curl -v -X DELETE http://admin:abc123@localhost:6001/new/foo/foo.txt

The result is that the document "foo" is created:

{"ok":true,"id":"foo","rev":"1-967a00dff5e02add41819138abb3284d"}


Expected:

404 error, as per the docs: http://docs.couchdb.org/en/2.0.0/api/document/attachments.html#delete--db-docid-attname

Observed in both CouchDB 1.6.1 and 2.0.0



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)