Jonathan Hall created COUCHDB-3363:
--------------------------------------
Summary: Deleting non-existing attachment doesn't fail with 404
Key: COUCHDB-3363
URL: https://issues.apache.org/jira/browse/COUCHDB-3363
Project: CouchDB
Issue Type: Bug
Reporter: Jonathan Hall
Related to https://issues.apache.org/jira/browse/COUCHDB-3362
Deleting a non-existing attachment never fails with a 404, rather it just
updates the document revision, contrary to the documentation:
http://docs.couchdb.org/en/2.0.0/api/document/attachments.html#delete--db-docid-attname
To reproduce:
Create an empty database:
curl -v -X PUT http://admin:abc123@localhost:5984/new
Create an empty document:
curl -v -X PUT http://admin:abc123@localhost:5984/new/foo -H "Content-Type:
application/json" -d '{}'
Attempt to delete an attachment from that document:
curl -v -X DELETE
http://admin:abc123@localhost:5984/new/foo/foo.txt?rev=1-967a00dff5e02add41819138abb3284d
Results in a new revision:
{"ok":true,"id":"foo","rev":"2-4259cd84694a6345d6c534ed65f1b30b"}
Expected:
404 error
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)