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 "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2007/01/24 10:21:49 UTC

[jira] Created: (DERBY-2268) AccessControlException when exiting junit.swingui.TestRunner

AccessControlException when exiting junit.swingui.TestRunner
------------------------------------------------------------

                 Key: DERBY-2268
                 URL: https://issues.apache.org/jira/browse/DERBY-2268
             Project: Derby
          Issue Type: Improvement
          Components: Test
    Affects Versions: 10.3.0.0
            Reporter: Knut Anders Hatlen
         Assigned To: Knut Anders Hatlen
            Priority: Minor


When the JUnit tests are run with junit.swingui.TestRunner, one gets the following exception when the test runner window is closed:

Exception in thread "AWT-EventQueue-0" java.security.AccessControlException: access denied (java.io.FilePermission /home/kh160127/.junitsession write)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-2268) AccessControlException when exiting junit.swingui.TestRunner

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

Kristian Waagan commented on DERBY-2268:
----------------------------------------

The change looks good. It will be nice to get rid of the exception we currently see when the GUI runner application is closed.
Further, I assume we don't need a read permission because the runner reads the file before the Derby harness has installed a security manager.

+1 to commit.

> AccessControlException when exiting junit.swingui.TestRunner
> ------------------------------------------------------------
>
>                 Key: DERBY-2268
>                 URL: https://issues.apache.org/jira/browse/DERBY-2268
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.3.0.0
>            Reporter: Knut Anders Hatlen
>         Assigned To: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: derby-2268.diff
>
>
> When the JUnit tests are run with junit.swingui.TestRunner, one gets the following exception when the test runner window is closed:
> Exception in thread "AWT-EventQueue-0" java.security.AccessControlException: access denied (java.io.FilePermission /home/kh160127/.junitsession write)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DERBY-2268) AccessControlException when exiting junit.swingui.TestRunner

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

Knut Anders Hatlen closed DERBY-2268.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.3.0.0

Thanks Kristian! Committed revision 500171.

> AccessControlException when exiting junit.swingui.TestRunner
> ------------------------------------------------------------
>
>                 Key: DERBY-2268
>                 URL: https://issues.apache.org/jira/browse/DERBY-2268
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.3.0.0
>            Reporter: Knut Anders Hatlen
>         Assigned To: Knut Anders Hatlen
>            Priority: Minor
>             Fix For: 10.3.0.0
>
>         Attachments: derby-2268.diff
>
>
> When the JUnit tests are run with junit.swingui.TestRunner, one gets the following exception when the test runner window is closed:
> Exception in thread "AWT-EventQueue-0" java.security.AccessControlException: access denied (java.io.FilePermission /home/kh160127/.junitsession write)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DERBY-2268) AccessControlException when exiting junit.swingui.TestRunner

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

Knut Anders Hatlen updated DERBY-2268:
--------------------------------------

    Attachment: derby-2268.diff

The attached patch gives junit.jar permission to write to .junitsession in the user's home directory.

> AccessControlException when exiting junit.swingui.TestRunner
> ------------------------------------------------------------
>
>                 Key: DERBY-2268
>                 URL: https://issues.apache.org/jira/browse/DERBY-2268
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.3.0.0
>            Reporter: Knut Anders Hatlen
>         Assigned To: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: derby-2268.diff
>
>
> When the JUnit tests are run with junit.swingui.TestRunner, one gets the following exception when the test runner window is closed:
> Exception in thread "AWT-EventQueue-0" java.security.AccessControlException: access denied (java.io.FilePermission /home/kh160127/.junitsession write)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.