You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2013/11/13 10:19:21 UTC

[jira] [Issue Comment Deleted] (DERBY-6349) DaylightSavingTest - java.security.AccessControlException

     [ https://issues.apache.org/jira/browse/DERBY-6349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-6349:
--------------------------------------

    Comment: was deleted

(was: Commit 1526486 from [~kmarsden] in branch 'code/branches/10.10'
[ https://svn.apache.org/r1526486 ]

DERBY-6349 - DaylightSavingTest - java.security.AccessControlException
merge revision 1525671 from trunk)

> DaylightSavingTest - java.security.AccessControlException
> ---------------------------------------------------------
>
>                 Key: DERBY-6349
>                 URL: https://issues.apache.org/jira/browse/DERBY-6349
>             Project: Derby
>          Issue Type: Bug
>         Environment: IBM internal prerelease JVM 
>            Reporter: Kathey Marsden
>            Assignee: Kathey Marsden
>             Fix For: 10.6.2.2, 10.7.1.4, 10.8.3.1, 10.9.2.2, 10.10.1.3, 10.11.0.0
>
>         Attachments: TimeZoneSecurity_diff.txt
>
>
> Seeing this test failure because of an intentional security change in TimeZone.setDefault().  Therefore need to wrap Timezone.setDefault in a priv block in the test.
> 1) DaylightSavingTestjava.security.AccessControlException: 
> Access denied ("java.util.PropertyPermission" "user.timezone" 
> "write")
>         at 
> java.security.AccessController.throwACE(AccessController.java:10
> 0)
>         at <unknown class>.<unknown method>(Unknown 
> Source)
>         at 
> java.lang.SecurityManager.checkPermission(SecurityManager.java:5
> 49)
>         at java.util.TimeZone.hasPermission(TimeZone.java:756)
>         at java.util.TimeZone.setDefault(TimeZone.java:778)
>         at 
> org.apache.derbyTesting.junit.TimeZoneTestSetup.setUp(TimeZoneTe
> stSetup.java:59)
>         at 
> junit.extensions.TestSetup$1.protect(TestSetup.java:22)
>         at junit.extensions.TestSetup.run(TestSetup.java:27)
>         at 
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.ja
> va:57)



--
This message was sent by Atlassian JIRA
(v6.1#6144)