[ 
https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434867#comment-13434867
 ] 

Kristian Waagan commented on DERBY-5889:
----------------------------------------

Regarding the various conversions, we sometimes need a URL (not the class, but 
the concept) and sometimes we need a path.

I fixed a recent introduction of the escaping issue with DERBY-5897. I had a 
look for others, but haven't gotten around to verify that they are indeed 
problems yet.

Your case above (currently) equals running with a security manager, but without 
a custom policy.
By adding "grant { java.security.AllPermissions; };" to the Derby policy file 
the above example works.

I've been testing a lot of different things, and maybe I overlooked something. 
I don't remember any more if I tested doing the URL to URI to String conversion.
What I did test was to create a separate URLClassLoader for jars on a Windows 
network drive. That worked, which suggests that either my changes didn't take 
effect in the right places for the policy file, or that the security manager 
does something else than the class loader when it comes to handling URLs.
                
> tests.compatibility._Suite has AccessControlException errors on Windows
> -----------------------------------------------------------------------
>
>                 Key: DERBY-5889
>                 URL: https://issues.apache.org/jira/browse/DERBY-5889
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.10.0.0
>         Environment: Windows Vista (possibly more variants)
>            Reporter: Kristian Waagan
>         Attachments: derby-5889-1a-disable_test.diff, 
> derby-5889-2a-windows_networkdrive_paths.diff, 
> derby-5889-2b-windows_networkdrive_paths.diff
>
>
> The modernized compatibility test fails for certain combinations on Windows 
> Vista.
> It is not clear to me why the failing combinations work on other platforms.
> Errors from 
> http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/testing/Limited/testSummary-1367634.html
>  :
> 1) combination(client 10.9.1.0 <> server 
> 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
>  client VM failed: :Spawned combination(client 10.9.1.0 <> server 10.10.0.0) 
> exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied 
> ("java.net.SocketPermission" "127.0.0.1:1527" "connect,resolve")
> 2) combination(client 10.8.2.2 <> server 
> 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
>  client VM failed: :Spawned combination(client 10.8.2.2 <> server 10.10.0.0) 
> exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied 
> ("java.net.SocketPermission" "127.0.0.1:1527" "connect,resolve")
> 3) combination(client 10.7.1.1 <> server 
> 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
>  client VM failed: :Spawned combination(client 10.7.1.1 <> server 10.10.0.0) 
> exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied 
> ("java.net.SocketPermission" "127.0.0.1:1527" "connect,resolve")
> 4) combination(client 10.6.2.1 <> server 
> 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
>  client VM failed: :Spawned combination(client 10.6.2.1 <> server 10.10.0.0) 
> exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied 
> ("java.net.SocketPermission" "127.0.0.1:1527" "connect,resolve")
> 5) combination(client 10.5.3.0 <> server 
> 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
>  client VM failed: :Spawned combination(client 10.5.3.0 <> server 10.10.0.0) 
> exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied 
> ("java.net.SocketPermission" "127.0.0.1:1527" "connect,resolve")
> 6) combination(client 10.4.2.1 <> server 
> 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
>  client VM failed: :Spawned combination(client 10.4.2.1 <> server 10.10.0.0) 
> exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied 
> ("java.net.SocketPermission" "127.0.0.1:1527" "connect,resolve")
> 7) combination(client 10.3.3.0 <> server 
> 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
>  client VM failed: :Spawned combination(client 10.3.3.0 <> server 10.10.0.0) 
> exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied 
> ("java.net.SocketPermission" "127.0.0.1:1527" "connect,resolve")
> 8) combination(client 10.2.2.1 <> server 
> 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
>  client VM failed: :Spawned combination(client 10.2.2.1 <> server 10.10.0.0) 
> exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied 
> ("java.net.SocketPermission" "127.0.0.1:1527" "connect,resolve")
> 9) combination(client 10.1.3.1 <> server 
> 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
>  client VM failed: :Spawned combination(client 10.1.3.1 <> server 10.10.0.0) 
> exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied 
> ("java.net.SocketPermission" "127.0.0.1:1527" "connect,resolve")

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to