--
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 h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.
final String[] h2Suffixes = new String[] {
org.h2.engine.Constants.SUFFIX_LOCK_FILE,
org.h2.engine.Constants.SUFFIX_PAGE_FILE,
org.h2.engine.Constants.SUFFIX_MV_FILE,
org.h2.engine.Constants.SUFFIX_TEMP_FILE,
org.h2.engine.Constants.SUFFIX_TRACE_FILE,
".data.db",
};
for (final String suffix : h2Suffixes) {
permissions.add(new FilePermission(userDBPath + suffix, "read, write, delete"));
}
In this context, it would be great if h2 provided a list of suffixes in Constants.java. Upgrading to a newer version would then be easier and more reliable.
thanks!
--
--
I think it's better to give access rights based on path than access rights based on file name suffixes. That is, allow to read from a certain directory.