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 EDD4D102FB for ; Tue, 12 Nov 2013 01:36:18 +0000 (UTC) Received: (qmail 47778 invoked by uid 500); 12 Nov 2013 01:36:17 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 47746 invoked by uid 500); 12 Nov 2013 01:36:17 -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 47621 invoked by uid 99); 12 Nov 2013 01:36:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Nov 2013 01:36:17 +0000 Date: Tue, 12 Nov 2013 01:36:17 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6356) java.security.AccessControlException in i18n.LocalizedDisplayScriptTest 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-6356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819719#comment-13819719 ] ASF subversion and git services commented on DERBY-6356: -------------------------------------------------------- Commit 1540913 from [~myrna] in branch 'code/branches/10.7' [ https://svn.apache.org/r1540913 ] DERBY-6356; java.security.AccessControlException in i18n.LocalizedDisplayScriptTest backport of the fix to make use of the TimeZoneTestSetup which has privileged code for TimeZone.setDefault() > java.security.AccessControlException in i18n.LocalizedDisplayScriptTest > ----------------------------------------------------------------------- > > Key: DERBY-6356 > URL: https://issues.apache.org/jira/browse/DERBY-6356 > Project: Derby > Issue Type: Bug > Affects Versions: 10.10.1.3 > Reporter: Myrna van Lunteren > Assignee: Myrna van Lunteren > Fix For: 10.10.1.3, 10.11.0.0 > > Attachments: DERBY-6356.diff > > > Seeing more test failures because of an intentional security change in TimeZone.setDefault(). Therefore need to wrap Timezone.setDefault in a priv block in the test. > 5) LocalizedDisplay(org.apache.derbyTesting.functionTests.tests.i18n.LocalizedDisplayScriptTest)java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "user.timezone" "write") > at java.security.AccessController.throwACE(AccessController.java:100) > at java.security.AccessController.checkPermission(AccessController.java:174) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) > at java.util.TimeZone.hasPermission(TimeZone.java:756) > at java.util.TimeZone.setDefault(TimeZone.java:778) > at org.apache.derbyTesting.functionTests.tests.i18n.LocalizedDisplayScriptTest.setUp(LocalizedDisplayScriptTest.java:140) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:117) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:439) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:456) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > and: > 6) LocalizedDisplay(org.apache.derbyTesting.functionTests.tests.i18n.LocalizedDisplayScriptTest)java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "user.timezone" "write") > at java.security.AccessController.throwACE(AccessController.java:100) > at java.security.AccessController.checkPermission(AccessController.java:174) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) > at java.util.TimeZone.hasPermission(TimeZone.java:756) > at java.util.TimeZone.setDefault(TimeZone.java:778) > at org.apache.derbyTesting.functionTests.tests.i18n.LocalizedDisplayScriptTest.setUp(LocalizedDisplayScriptTest.java:140) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:117) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:439) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:456) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) -- This message was sent by Atlassian JIRA (v6.1#6144)