Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 51197 invoked from network); 23 May 2007 19:51:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2007 19:51:40 -0000 Received: (qmail 81831 invoked by uid 500); 23 May 2007 19:51:42 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 81794 invoked by uid 500); 23 May 2007 19:51:42 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 81772 invoked by uid 99); 23 May 2007 19:51:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 12:51:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 12:51:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 58F65714047 for ; Wed, 23 May 2007 12:51:16 -0700 (PDT) Message-ID: <20933208.1179949876361.JavaMail.jira@brutus> Date: Wed, 23 May 2007 12:51:16 -0700 (PDT) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-2000) A SecurityManager is not always installed when running JUnit tests/suites In-Reply-To: <31097210.1161797416490.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel John Debrunner resolved DERBY-2000. ------------------------------------------ Resolution: Fixed Fix Version/s: 10.3.0.0 COmmitted revision 541044. Created a new BaseTestSetup class that installs the SecurityManager like BaseTestCase, modified several decorators to extend this new class rather than TestSetup. > A SecurityManager is not always installed when running JUnit tests/suites > ------------------------------------------------------------------------- > > Key: DERBY-2000 > URL: https://issues.apache.org/jira/browse/DERBY-2000 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.3.0.0 > Reporter: Kristian Waagan > Assigned To: Daniel John Debrunner > Priority: Minor > Fix For: 10.3.0.0 > > Attachments: derby-2000-1a.diff > > > A SecurityManager is not always installed (early enough) when running JUnit tests/suites. > For instance, when running 'jdbcapi.BlobClob4Blob' a SecurityManager was installed during database boot and revealed problems with the policy file, but when the same test was run as part of 'suites.All', no errors were seen. > BTW: There is nothing wrong with BlobClob4Blob. > It seems that 'BaseTestCase.runBare', which installs a SecurityManager, is bypassed when running code in decorators (most importantly setUp). > Since a SecurityManager is installed as soon as a test method is run, this bug is not that severe. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.