couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Newson (JIRA)" <>
Subject [jira] [Resolved] (COUCHDB-1096) HTTP DELETE method not working for documents in _users database
Date Mon, 21 Mar 2011 19:39:05 GMT


Robert Newson resolved COUCHDB-1096.

    Resolution: Invalid

This has been fixed in an earlier release but _users/_design/_auth is not automatically updated
if present. Delete it and restart couch to get the latest version.

> HTTP DELETE method not working for documents in _users database
> ---------------------------------------------------------------
>                 Key: COUCHDB-1096
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.0.2
>         Environment: CouchDBX 1.0.2
>            Reporter: Paul Mietz Egli
> Clicking on the "Delete Document" button when viewing a document in the _users database
results in a popup that says "The document could not be deleted: doc.type must be user". 
The log shows a DELETE request to the proper document URL (with rev) and a 403 error.  To
determine if the problem was limited to Futon, I double checked with curl as follows:
> curl -X DELETE http://admin:password@localhost:5984/_users/org.couchdb.user:myusername?rev=3-24475d94a04d4518675303bb949e4e6b
> {"error":"forbidden","reason":"doc.type must be user"}
> It appears that the problem is that the _deleted document property isn't being set prior
to the call to the validate function defined in couch_js_functions.hrl.
> The workaround for deleting a user document is to set "_deleted" : "true" on the doc.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message