Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 61105 invoked from network); 21 Mar 2011 19:39:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Mar 2011 19:39:43 -0000 Received: (qmail 77707 invoked by uid 500); 21 Mar 2011 19:39:43 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 77671 invoked by uid 500); 21 Mar 2011 19:39: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 77663 invoked by uid 99); 21 Mar 2011 19:39: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 19:39: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 19:39: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 C631836B28 for ; Mon, 21 Mar 2011 19:39:05 +0000 (UTC) Date: Mon, 21 Mar 2011 19:39:05 +0000 (UTC) From: "Robert Newson (JIRA)" To: dev@couchdb.apache.org Message-ID: <1699323469.1836.1300736345808.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1058275599.1472.1300731185787.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (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 [ https://issues.apache.org/jira/browse/COUCHDB-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] 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: 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