db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Matrigali (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-616) create index can fail under the SecurityManager when trying to access files in the tmp folder of a database
Date Fri, 28 Apr 2006 16:32:39 GMT
     [ http://issues.apache.org/jira/browse/DERBY-616?page=all ]

Mike Matrigali updated DERBY-616:

    Fix Version:

backported this fix from trunk into 10.1 line:

m101_142:62>svn commit

Sending        java\engine\org\apache\derby\impl\store\raw\data\StreamFileContai
Sending        java\testing\org\apache\derbyTesting\functionTests\tests\lang\aut
Sending        java\testing\org\apache\derbyTesting\functionTests\tests\lang\wis
Sending        java\testing\org\apache\derbyTesting\functionTests\util\derby_tes
Transmitting file data ....
Committed revision 397945.

> create index can fail under the SecurityManager when trying to access files in the tmp
folder of a database
> -----------------------------------------------------------------------------------------------------------
>          Key: DERBY-616
>          URL: http://issues.apache.org/jira/browse/DERBY-616
>      Project: Derby
>         Type: Bug

>   Components: Store
>     Versions:,,
>     Reporter: Daniel John Debrunner
>     Assignee: Suresh Thalamati
>     Priority: Critical
>      Fix For:,,
>  Attachments: derby-616.diff
> Seen in tests lang/wisconsin.sql and jdbcapi/maxfieldsize.java when running with the
network server and the new security policy file that grants permisions on a per-jar basis.
Unless permission is given to the network serve code (since it is in the stack) to access
temp files in the database the test will fail.
>   permission java.io.FilePermission "${derby.system.home}${/}wombat${/}tmp${/}-", "read,
write, delete";
> Most likely the temp files are being accessed in without a privileged block.
> Easy to reproduce once the new policy file changes are checked in (see http://wiki.apache.org/db-derby/SecurityManagerTesting)
by removing the permission in the derby_tests.policy  file and running these tests using the
jar files.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message