db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mamta A. Satoor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-6356) java.security.AccessControlException in i18n.LocalizedDisplayScriptTest
Date Sun, 10 Nov 2013 06:33:17 GMT

    [ https://issues.apache.org/jira/browse/DERBY-6356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818373#comment-13818373
] 

Mamta A. Satoor commented on DERBY-6356:
----------------------------------------

Maybe following failures are not related to this jira but saw these failures on 10.9 codeline(revision
1540252) with IBM jdk 1.6
http://people.apache.org/~myrnavl/derby_test_results/v10_9/windows/testlog/ibm16/1540252-suites.All_diff.txt
1) DaylightSavingTestjava.security.AccessControlException: Access denied (java.util.PropertyPermission
user.timezone write)
2) org.apache.derbyTesting.functionTests.tests.store.AutomaticIndexStatisticsTestjava.security.AccessControlException:
Access denied (java.util.PropertyPermission user.timezone write)
3) LocalizedDisplay(org.apache.derbyTesting.functionTests.tests.i18n.LocalizedDisplayScriptTest)java.security.AccessControlException:
Access denied (java.util.PropertyPermission user.timezone write)
4) LocalizedDisplay(org.apache.derbyTesting.functionTests.tests.i18n.LocalizedDisplayScriptTest)java.security.AccessControlException:
Access denied (java.util.PropertyPermission user.timezone write)

There were 4 errors:
1) DaylightSavingTestjava.security.AccessControlException: Access denied (java.util.PropertyPermission
user.timezone write)
	at java.security.AccessController.throwACE(AccessController.java:100)
	at <unknown class>.<unknown method>(Unknown Source)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
	at java.util.TimeZone.hasPermission(TimeZone.java:676)
	at java.util.TimeZone.setDefault(TimeZone.java:698)
	at org.apache.derbyTesting.junit.TimeZoneTestSetup.setUp(TimeZoneTestSetup.java:59)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
2) org.apache.derbyTesting.functionTests.tests.store.AutomaticIndexStatisticsTestjava.security.AccessControlException:
Access denied (java.util.PropertyPermission user.timezone write)
	at java.security.AccessController.throwACE(AccessController.java:100)
	at <unknown class>.<unknown method>(Unknown Source)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
	at java.util.TimeZone.hasPermission(TimeZone.java:676)
	at java.util.TimeZone.setDefault(TimeZone.java:698)
	at org.apache.derbyTesting.junit.TimeZoneTestSetup.setUp(TimeZoneTestSetup.java:59)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
3) 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:544)
	at java.util.TimeZone.hasPermission(TimeZone.java:676)
	at java.util.TimeZone.setDefault(TimeZone.java:698)
	at org.apache.derbyTesting.functionTests.tests.i18n.LocalizedDisplayScriptTest.setUp(LocalizedDisplayScriptTest.java:140)
	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:113)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:442)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:459)
	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)
4) 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:544)
	at java.util.TimeZone.hasPermission(TimeZone.java:676)
	at java.util.TimeZone.setDefault(TimeZone.java:698)
	at org.apache.derbyTesting.functionTests.tests.i18n.LocalizedDisplayScriptTest.setUp(LocalizedDisplayScriptTest.java:140)
	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:113)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:442)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:459)
	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)

> 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)

Mime
View raw message