Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 2796 invoked from network); 21 Mar 2011 18:13:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Mar 2011 18:13:43 -0000 Received: (qmail 41849 invoked by uid 500); 21 Mar 2011 18:13:43 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 41701 invoked by uid 500); 21 Mar 2011 18:13:43 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 41595 invoked by uid 99); 21 Mar 2011 18:13:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Mar 2011 18:13:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Mar 2011 18:13:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C0E9A4023B8 for ; Mon, 21 Mar 2011 18:13:05 +0000 (UTC) Date: Mon, 21 Mar 2011 18:13:05 +0000 (UTC) From: "Paul Mietz Egli (JIRA)" To: dev@couchdb.apache.org Message-ID: <1058275599.1472.1300731185787.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (COUCHDB-1096) HTTP DELETE method not working for documents in _users database MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 HTTP DELETE method not working for documents in _users database --------------------------------------------------------------- Key: COUCHDB-1096 URL: https://issues.apache.org/jira/browse/COUCHDB-1096 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: http://www.atlassian.com/software/jira