[
https://issues.apache.org/jira/browse/DERBY-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick Hillegas updated DERBY-2544:
---------------------------------
Attachment: derby-2544-01.diff
Thanks to Ole and Dag for helping push this forward. Here is a significant
difference between my environment (where the test works) and the tinderbox and
Dag's environments (where the test does not work): My classpath begins with ":"
and their classpaths don't. This means that the current directory is in my
classpath. In looking for the policy file, SecurityManagerSetup assumes that
the policy file is on the classpath. This is not true for the
SecurityPolicyReloadingTest, which has to put the policy file in extinout so
that it can be overwritten. If SecurityManagerSetup can't find the policy file,
it silently shrugs its shoulders and ignores the attempt to set a policy file.
I have attached a patch, derby-2544-01.diff, which lets the policy file come
from outside the classpath and be any URL resource. I would appreciate it if
this patch could be tested by people who are having trouble with this test.
Thanks.
This patch touches the following files:
M
java/testing/org/apache/derbyTesting/functionTests/tests/lang/SecurityPolicyReloadingTest.java
M java/testing/org/apache/derbyTesting/junit/SecurityManagerSetup.java
> SecurityPolicyReloadingTest( )junit.framework.AssertionFailedError: Policy
> file changed. Should not be able to read the property.
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-2544
> URL: https://issues.apache.org/jira/browse/DERBY-2544
> Project: Derby
> Issue Type: Bug
> Components: Regression Test Failure
> Reporter: Mike Matrigali
> Fix For: 10.3.0.0
>
> Attachments: derby-2544-01.diff
>
>
> tinderbox running of the SecurityPolicyReloadingTest fails in the tinder box
> runs. A recent link to the error is:
> http://dbtg.thresher.com/derby/test/tinderbox_trunk16/jvm1.6/testing/testlog/SunOS-5.10_i86pc-i386/527898-org.apache.derbyTesting.functionTests.suites.All_diff.txt
> The stack is:
> 1) SecurityPolicyReloadingTest( )junit.framework.AssertionFailedError:
> Policy file changed. Should not be able to read the property.
> at
> org.apache.derbyTesting.functionTests.tests.lang.SecurityPolicyReloadingTest.dbaTest(SecurityPolicyReloadingTest.java:230)
> at
> org.apache.derbyTesting.functionTests.tests.lang.SecurityPolicyReloadingTest.doPolicyReloadingIsGranted(SecurityPolicyReloadingTest.java:214)
> at
> org.apache.derbyTesting.functionTests.tests.lang.SecurityPolicyReloadingTest.testPolicyReloading(SecurityPolicyReloadingTest.java:197)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
> 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 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 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 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.