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 "Bryan Pendleton (JIRA)" <de...@db.apache.org> on 2006/03/27 23:31:27 UTC

[jira] Updated: (DERBY-1152) Failures in sysinfo and sysinfo_withproperties induced by classpath wiring

     [ http://issues.apache.org/jira/browse/DERBY-1152?page=all ]

Bryan Pendleton updated DERBY-1152:
-----------------------------------

    Attachment: derby-1152-looser-policy.diff

Attached is a proposed patch, derby-1152-looser-policy.diff. 

This patch adds extra lines to derby_tests.policy.  

The idea is that,
 - with respect to reading java.class.path 
 - and with respect to accessing the locale message files, 
the sysinfo classes are now granted the same policy, regardless 
of whether the sysinfo classes are loaded from:
 - the classes directory, 
 - from derby.jar, 
 - from derbynet.jar, 
 - or from derbytools.jar.

Since the two sysinfo tests are no longer denied permission to
read java.class.path, the patch includes new master files with
the new expected output.

Rick, and others who have been experiencing this problem, can you
please review this patch and see if it resolves your issues with
the sysinfo tests?

Dan and Andrew, and others who have been investigating security
policy issues, can you please consider whether it is OK to
add these additional lines to derby_tests.policy?


> Failures in sysinfo and sysinfo_withproperties induced by classpath wiring
> --------------------------------------------------------------------------
>
>          Key: DERBY-1152
>          URL: http://issues.apache.org/jira/browse/DERBY-1152
>      Project: Derby
>         Type: Bug
>   Components: Test
>     Versions: 10.2.0.0
>     Reporter: Rick Hillegas
>     Assignee: Bryan Pendleton
>  Attachments: derby-1152-looser-policy.diff
>
> If you wire your classpath together out of the compiled classtree and the checked-in jars, you get the following error in the sysinfo and sysinfo_withproperties tests. You don't see this error if you run against the built Derby jar files:
> 15d14
> < Unable to analyze class path: access denied (java.util.PropertyPermission java.class.path read)
> 43d41
> < Unable to analyze class path: access denied (java.util.PropertyPermission java.class.path read)
> 72d69
> < Unable to analyze class path: access denied (java.util.PropertyPermission java.class.path read)
> Test Failed.

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