Derby
  1. Derby
  2. DERBY-6349

DaylightSavingTest - java.security.AccessControlException

    Details

      Description

      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)

        Issue Links

          Activity

          Myrna van Lunteren made changes -
          Fix Version/s 10.10.2.0 [ 12326659 ]
          Fix Version/s 10.10.1.4 [ 12324247 ]
          Myrna van Lunteren made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Myrna van Lunteren made changes -
          Component/s Test [ 11413 ]
          Knut Anders Hatlen made changes -
          Comment [ 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 ]
          Kathey Marsden made changes -
          Fix Version/s 10.6.2.2 [ 12315370 ]
          Fix Version/s 10.7.1.4 [ 12315902 ]
          Fix Version/s 10.8.3.1 [ 12323475 ]
          Fix Version/s 10.9.2.2 [ 12323562 ]
          Myrna van Lunteren made changes -
          Link This issue relates to DERBY-6356 [ DERBY-6356 ]
          Kathey Marsden made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 10.10.1.3 [ 12324247 ]
          Fix Version/s 10.11.0.0 [ 12324243 ]
          Resolution Fixed [ 1 ]
          Kathey Marsden made changes -
          Attachment TimeZoneSecurity_diff.txt [ 12603870 ]
          Kathey Marsden made changes -
          Field Original Value New Value
          Summary DaylightSavingTestjava.security.AccessControlException DaylightSavingTest - java.security.AccessControlException
          Kathey Marsden created issue -

            People

            • Assignee:
              Kathey Marsden
              Reporter:
              Kathey Marsden
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development