Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 91443 invoked from network); 9 Oct 2010 19:47:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Oct 2010 19:47:10 -0000 Received: (qmail 88161 invoked by uid 500); 9 Oct 2010 19:46:52 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 88109 invoked by uid 500); 9 Oct 2010 19:46:52 -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 88077 invoked by uid 99); 9 Oct 2010 19:46:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 19:46:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 19:46:52 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o99JkWFJ017450 for ; Sat, 9 Oct 2010 19:46:32 GMT Message-ID: <10331204.59351286653592267.JavaMail.jira@thor> Date: Sat, 9 Oct 2010 15:46:32 -0400 (EDT) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-790) validate_doc_update on the _users database fails In-Reply-To: <31262800.21021276171034256.JavaMail.jira@thor> 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-790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Joseph Davis updated COUCHDB-790: -------------------------------------- Skill Level: Regular Contributors Level (Easy to Medium) > validate_doc_update on the _users database fails > ------------------------------------------------ > > Key: COUCHDB-790 > URL: https://issues.apache.org/jira/browse/COUCHDB-790 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Affects Versions: 0.11 > Reporter: Cliff Stanford > Original Estimate: 0.02h > Remaining Estimate: 0.02h > > The validate_doc_update on the users database contains the following code: > if ((oldDoc || newDoc).type != 'user') { > throw({forbidden : 'doc.type must be user'}); > } // we only validate user docs for now > However the effect of this is that a user may change his type *from* "user" but not back again. I don't think this is what was intended. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.