db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Korneliussen (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1545) derbynet/testProtocol.java fails with security manager enabled
Date Thu, 27 Jul 2006 12:44:14 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1545?page=comments#action_12423828 ] 
            
Andreas Korneliussen commented on DERBY-1545:
---------------------------------------------

Improved the original patch by also granting permission to "${derbyTesting.serverhost}".
This should make it possible to also run this test when the server host is on a remote machine.
Committed revision 426048.


> derbynet/testProtocol.java fails with security manager enabled
> --------------------------------------------------------------
>
>                 Key: DERBY-1545
>                 URL: http://issues.apache.org/jira/browse/DERBY-1545
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>    Affects Versions: 10.2.0.0
>         Environment: Solaris 10 x86, Sun JVM 1.5.0
>            Reporter: Knut Anders Hatlen
>         Assigned To: Andreas Korneliussen
>             Fix For: 10.2.0.0
>
>         Attachments: DERBY-1545.diff, DERBY-1545.stat
>
>
> The tinderbox test started failing after revision 423676 which enabled security manager
for derbynet/testProtocol.java. See http://www.multinet.no/~solberg/public/Apache/TinderBox_Derby/testlog/SunOS-5.10_i86pc-i386/423706-derbyall_diff.txt
> Exception in thread "main" java.security.AccessControlException: access denied (java.net.SocketPermission
127.0.0.1:1527 connect,resolve)
> 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
> 	at java.security.AccessController.checkPermission(AccessController.java:427)
> 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> 	at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
> 	at java.net.Socket.connect(Socket.java:501)
> 	at java.net.Socket.connect(Socket.java:457)
> 	at java.net.Socket.<init>(Socket.java:365)
> 	at java.net.Socket.<init>(Socket.java:178)
> 	at org.apache.derby.impl.drda.TestProto.getConnection(Unknown Source)
> 	at org.apache.derby.impl.drda.TestProto.<init>(Unknown Source)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet.testProtocol.executeFile(Unknown
Source)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet.testProtocol.main(Unknown Source)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message