[
https://issues.apache.org/jira/browse/DERBY-2448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997782#comment-12997782
]
Myrna van Lunteren commented on DERBY-2448:
-------------------------------------------
The fact that this error was not seen during the 10.3 branch test run - nor
later - may be because the test was commented out in derbynet._Suite with
revision 532992 after an attempt to convert it to junit (with revision 532853)
- which was before the 10.3 branch was created (revision 547740).
The error for which it was removed (according to the comments in _Suite:
" // Disabled due to "java.sql.SQLSyntaxErrorException: The class
// 'org.apache.derbyTesting.functionTests.tests.derbynet.checkSecMgr'
// does not exist or is inaccessible. This can happen if the class is
not public."
// in the nightly tests with JDK 1.6 and jar files.
//suite.addTest(CheckSecurityManager.suite());"
can be fixed simply by fixing the name in the create stored procedure name in
the test.
But I think that even after that, the test needs some more work before we can
say whether we would get this error or not; the test has 2 test cases, one of
which is commented out, and appears to be the more interesting one. I think it
would be that one that would give this failure.
I think it best at this time to close this issue, and I created DERBY-5064 to
actually revive this test properly.
> derbynet/checkSecMgr.java fails with 'Should have gotten security Exception'
> -----------------------------------------------------------------------------
>
> Key: DERBY-2448
> URL: https://issues.apache.org/jira/browse/DERBY-2448
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.3.1.4
> Environment: OS: Microsoft Windows XP Professional - 5.1.2600 Service
> Pack 2 Build 2600 - CYGWIN_NT-5.1 1.5.18(0.132/4/2) 2005-07-02 20:30 Cygwin
> JVM: Sun Microsystems Inc. 1.4.2_10-b03
> Reporter: Ole Solberg
> Priority: Minor
>
> Seen on Windows XP / 1.4.2 since 2007-03-05.
> E.g.
> http://dbtg.thresher.com/derby/test/trunk15/jvm1.4/testing/testlog/CYGWIN_NT-5.1_i686-unknown/517324-derbyall_diff.txt
> <method>
> derbynet/checkSecMgr.java
> </method>
> <signature>
> 3 del
> < Expected Security Exception
> 4 del
> < ERROR 38000: The exception 'java.security.AccessControlException: access
> denied (java.util.PropertyPermission notAllowed write)' was thrown while
> evaluating an expression. SQLSTATE: XJ001: Java exception: 'access denied
> (java.util.PropertyPermission notAllowed write):
> java.security.AccessControlException'.
> 4 add
> > FAILED: Should have gotten security Exception
> </signature>
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira