You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kristian Waagan (JIRA)" <ji...@apache.org> on 2012/08/02 10:32:03 UTC

[jira] [Created] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Kristian Waagan created DERBY-5889:
--------------------------------------

             Summary: 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
         Environment: Windows Vista (possibly more variants)
            Reporter: Kristian Waagan


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

        

[jira] [Commented] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434933#comment-13434933 ] 

Knut Anders Hatlen commented on DERBY-5889:
-------------------------------------------

I see that the network server starts successfully on a windows network drive, with the default policy, if NetworkServerControl.getCodeSourcePrefix() is modified to manually change a "file://" prefix to "file:////". So at least it looks like it should be possible to work around this issue on trunk.

But getting the already released versions to run with the default policy would be difficult, so the compatibility test probably needs a workaround like the one in your patch. Maybe we should add the workaround to the compatibility test here, and file a new bug to track the problem with running the network server on a network drive?
                
> 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

        

[jira] [Commented] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430973#comment-13430973 ] 

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

This bug doesn't reproduce on the Windows 7 and the Windows Vista (32-bit) machines I have available.
I'll try to look at the runs that are failing and see if I can find some useful information there. The only lead I have so far is special paths, but I did try to run the tests from a directory with spaces in it. Now that I'm writing this, I realize I should try to put both trunk and the old releases in directories with spaces to see if that makes a difference.
                
> 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
>
>
> 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

        

[jira] [Updated] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Waagan updated DERBY-5889:
-----------------------------------

    Attachment: derby-5889-1a-disable_test.diff

Disabled the suite on Windows with revision 1370233 (patch 1a).
Will look into the bug.
                
> 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
>
>
> 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

        

[jira] [Commented] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438608#comment-13438608 ] 

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

Thanks, Knut.

I've logged and attached a patch to DERBY-5908. This will fix the issue with the network server, but not for the compatibility tests.

I don't think we need the java.security.policy=<NONE> (Derby specific) workaround for the compatibility test, as the problem can be fixed in SecurityManagerSetup (the compatibility suite fires off test cases in separate VMs).
I also expect a few other tests to fail due to path issues, but I'll get back to those later.
                
> 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

        

[jira] [Updated] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Waagan updated DERBY-5889:
-----------------------------------

    Attachment: derby-5889-2b-windows_networkdrive_paths.diff

Updated patch 2 to deal with paths containing a mix of slash and back-slash. Not very likely, but the code gets more compact as side effect :)

Patch ready for review.
                
> 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

        

[jira] [Commented] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434490#comment-13434490 ] 

Knut Anders Hatlen commented on DERBY-5889:
-------------------------------------------

Thanks. I noticed that the test code sometimes converted File to URL by using file.toURL().toExternalForm() and other times using file.toURI().toURL().toExternalForm(). The latter does some extra escaping of the network drive paths, so I thought maybe that could be related somehow.

But I'm wondering if this might be a product issue and not a test issue. For example, when I try to start the network server on Windows using a derbynet.jar located on a network drive, it refuses to start unless I specify -noSecurityManager:

C:\cygwin\home\lroot\test> java -jar \\yme\cluwin\usr\local\share\java\derby\lib\10.9.1.0\derbynet.jar start
Tue Aug 14 22:23:33 CEST 2012 : Security manager installed using the Basic server security policy.
Startup failed due to missing functionality for org.apache.derby.iapi.services.stream.InfoStreams. Please ensure your classpath includes the correct Derby software.
ERROR XBM02: Startup failed due to missing functionality for org.apache.derby.iapi.services.stream.InfoStreams. Please ensure your classpath includes the correct Derby software.
	at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
	at org.apache.derby.iapi.services.monitor.Monitor.missingImplementation(Unknown Source)
	at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
	at org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unknown Source)
	at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unknown Source)
	at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown Source)
	at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown Source)
	at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
	at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
	at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.startNetworkServer(Unknown Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(Unknown Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.executeWork(Unknown Source)
	at org.apache.derby.drda.NetworkServerControl.main(Unknown Source)

I think this is supposed to work.
                
> 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

        

[jira] [Commented] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434407#comment-13434407 ] 

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

There's no explicit conversion as such.
Access using File works fine, the problem is the URLs in the security policy. These URLs are obtained by asking the VM where certain classes are loaded from (see SecurityManagerSetup).
Assuming a CodeSource is defined for class X, you typically do "X.class.getProtectionDomain().getCodeSource().getLocation()". In some cases getCodeSource() returns null (see the docs).

Also note that in this case a new VM is forked for the client. The policy file is not updated in any other way than what happens normally, the only difference is the classpath (for instance "c:\derby\lib\derbyclient.jar" vs "\\myhost\share\derby\lib\derbyclient.jar").
                
> 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

        

[jira] [Updated] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Waagan updated DERBY-5889:
-----------------------------------

    Issue & fix info:   (was: Patch Available)

Clearing patch available. Patches 2x are not sufficient and should not be committed.

I do plan to look at this later, but most likely it won't happen before early 2013. If someone wants to pick this up, feel free to.
                
> 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
>              Labels: derby_triage10_10
>         Attachments: derby-5889-1a-disable_test.diff, derby-5889-1b-disable_test_relaxed.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
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434385#comment-13434385 ] 

Knut Anders Hatlen commented on DERBY-5889:
-------------------------------------------

Just to verify that I've understood the details. The issue here is that we need to update the security policies to point to jar files for the old versions, and these references must be in the form of URLs. But, for some reason, the URLs produced by the test code are not usable in the policy files if the jar files are located on a Windows network drive. Is that correct? Where's the code that does this transformation? (I did a quick search for places in the test code where we convert java.io.File objects to java.net.URL or java.net.URI, which returned many hits, so I didn't immediately see which of these were used by the compatibility test.)


                
> 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

        

[jira] [Updated] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Myrna van Lunteren updated DERBY-5889:
--------------------------------------

    Issue & fix info: Patch Available
             Urgency: Normal
              Labels: derby_triage10_10  (was: )

I'm marking normal urgency, and patch available.
Kristian, are you still working on this?
                
> 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
>              Labels: derby_triage10_10
>         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
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Waagan updated DERBY-5889:
-----------------------------------

    Attachment: derby-5889-2a-windows_networkdrive_paths.diff

Attaching a possible fix for this issue (patch 2a), which disabled the security manager for the client if the old releases live on a Windows network drive/mount (i.e. "\\name\dir\dir\file").

The problem here is that I'm unable to insert a valid URL for the code source in the policy file. This leads to missing privileges.
>From the top of my head, I think these options are alternative solutions/work-arounds:
 o map the network mount to a drive letter
 o install a custom URL protocol handler
 o grant permissions without specifying code source
   (this can probably be made somewhat conditional, i.e. by specifying nonsene values that are inserted into the policy file aka 'file://unsued' as used already).

Patch ready for review.
                
> 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
>
>
> 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

        

[jira] [Updated] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Waagan updated DERBY-5889:
-----------------------------------

          Component/s: Test
    Affects Version/s: 10.10.0.0

Looks like the failing runs are all with a non-trunk client.
                
> 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
>
> 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

        

[jira] [Updated] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Waagan updated DERBY-5889:
-----------------------------------

    Attachment: derby-5889-1b-disable_test_relaxed.diff

Committed patch 1b to trunk with revision 1394250.
It relaxes the criteria for disabling the test, such that it will run on Windows as long as the old releases don't reside on a network drive / UNC path (i.e. "\\myhost\share").

There is more work to make this work, but I don't think it is urgent. This hasn't worked for a long time...

One must ensure URLs/URIs have the host name in the path component, not in the authority component. Existing code in the Java API doesn't always make this happen, and one such example is ClassLoader.getResource[AsStream](String). So, some resources must be obtained manually, making sure the UNC path is correctly representedby the URL object.
Some more information here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7195175

There are also some other issues, where paths inserted into security policy must be manipulated in the case of UNC paths. The general issue is that "file://blabla" must be converted to "file:////blabla". Some additional issues dealing with these paths when going from URL to File etc.
                
> 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
>              Labels: derby_triage10_10
>         Attachments: derby-5889-1a-disable_test.diff, derby-5889-1b-disable_test_relaxed.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
For more information on JIRA, see: http://www.atlassian.com/software/jira