Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D3849D33 for ; Wed, 29 Aug 2012 10:49:10 +0000 (UTC) Received: (qmail 98866 invoked by uid 500); 29 Aug 2012 10:49:09 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 98796 invoked by uid 500); 29 Aug 2012 10:49:08 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 98770 invoked by uid 99); 29 Aug 2012 10:49:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2012 10:49:07 +0000 Date: Wed, 29 Aug 2012 21:49:07 +1100 (NCT) From: "Jukka Zitting (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <2019727872.11176.1346237347637.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (OAK-287) PrivilegeManagerImplTest.testJcrAll assumes that there are no custom privileges MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jukka Zitting created OAK-287: --------------------------------- Summary: PrivilegeManagerImplTest.testJcrAll assumes that there are no custom privileges Key: OAK-287 URL: https://issues.apache.org/jira/browse/OAK-287 Project: Jackrabbit Oak Issue Type: Bug Components: jcr Reporter: Jukka Zitting Priority: Minor The {{testJcrAll}} test checks the contents of the {{jcr:all}} privilege by first verifying that all standard JCR privileges are included and then asserting that no other privileges are included. That last assertion doesn't work properly since the {{jcr:all}} privilege is defined to also "include all implementation-defined privileges" and in some orderings of the test suite the other test cases like {{testRegisterCustomPrivileges}} have already added such custom privileges before the {{testJcrAll}} test gets executed. Ideally we'd run each test case in a completely isolated state so the ordering of tests won't matter. If that can't be done, the assertion at the end of {{testJcrAll}} should be disabled. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira