I need to grant derby.jar read,write,delete access on tmp directory (issue derby-1341).
I tried adding
permission java.io.FilePermission "${java.io.tmpdir}${/}-", "read, write, delete";

in this section
grant codeBase "${derbyTesting.codejar}derby.jar"

I continue to get security exception while creating a temporary file. But when I add same permission to all (grant {}) it works fine.
What am i doing wrong here ?
thanks
anurag

Daniel John Debrunner wrote:
Anurag Shekhar wrote:


Yes java.io.File.createTempFile() will work. But is it ok to grant file
i/o access to a jdbc driver class ?

Permissions afre granted to derby.jar, not individual classes.

Dan.




Reply via email to