Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 17C939D99 for ; Wed, 6 Mar 2013 16:16:16 +0000 (UTC) Received: (qmail 21480 invoked by uid 500); 6 Mar 2013 16:16:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 21326 invoked by uid 500); 6 Mar 2013 16:16:15 -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 21148 invoked by uid 99); 6 Mar 2013 16:16:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 16:16:13 +0000 Date: Wed, 6 Mar 2013 16:16:13 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (DERBY-6091) SystemPrivilegesPermissionTest fails on JDK 8 EA 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/DERBY-6091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen closed DERBY-6091. ------------------------------------- Resolution: Invalid A fix has been checked in to OpenJDK for the bug Rick filed. I built new JDK binaries from sources that included the fix, and now the test passes. Closing this bug as invalid as it turned out to be a JVM issue. > SystemPrivilegesPermissionTest fails on JDK 8 EA > ------------------------------------------------ > > Key: DERBY-6091 > URL: https://issues.apache.org/jira/browse/DERBY-6091 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.10.0.0 > Environment: 1.8.0-ea-b77 > Reporter: Knut Anders Hatlen > Attachments: AccessDenied.java > > > When using an early access build of JDK 8, I see the following failure in SystemPrivilegesPermissionTest: > java.security.AccessControlException: access denied ("org.apache.derby.security.DatabasePermission" "directory:dir" "create") > at java.security.AccessControlContext.checkPermission(AccessControlContext.java:364) > at java.security.AccessController.checkPermission(AccessController.java:560) > at org.apache.derbyTesting.unitTests.junit.SystemPrivilegesPermissionTest$CreateDatabaseAction.run(SystemPrivilegesPermissionTest.java:714) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAsPrivileged(Subject.java:474) > at org.apache.derbyTesting.unitTests.junit.SystemPrivilegesPermissionTest$RunAsPrivilegedUserAction.run(SystemPrivilegesPermissionTest.java:788) > at java.security.AccessController.doPrivileged(Native Method) > at org.apache.derbyTesting.unitTests.junit.SystemPrivilegesPermissionTest.execute(SystemPrivilegesPermissionTest.java:566) > at org.apache.derbyTesting.unitTests.junit.SystemPrivilegesPermissionTest.policyTestDatabasePermissionGrants(SystemPrivilegesPermissionTest.java:550) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:117) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:23) > at junit.extensions.TestSetup.run(TestSetup.java:27) -- 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