After updating to version 1.4.181 I see this exception:

Caused by: java.security.AccessControlException: access denied 
("java.io.FilePermission" "/path_to_db/dbname.h2.mv.db.tempFile" "read")
    at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:457)
    at 
java.security.AccessController.checkPermission(AccessController.java:884)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
    at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
    at java.io.File.exists(File.java:814)
    at org.h2.store.fs.FilePathDisk.exists(FilePathDisk.java:149)
    at org.h2.store.fs.FileUtils.exists(FileUtils.java:31)
    at org.h2.mvstore.MVStoreTool.compactCleanUp(MVStoreTool.java:348)
    at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:61)
    at org.h2.engine.Database.getPageStore(Database.java:2372)
    at org.h2.engine.Database.open(Database.java:666)
    at org.h2.engine.Database.openDatabase(Database.java:266)


This was not happening in version 1.4.180.

My code runs under a security manager, and I have already added the 
required file permissions for Constants.SUFFIX_TEMP_FILE

The Suffix for temp file is defined as ".temp.db" in Constants.java.

It looks like MVStoreTool is suddenly using different file names now.

Can you please tell me if this is a regression or the paths are changed now?

thanks,
Harshad

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to