Hi,

Is there any update to this thread?

For context:
We are using h2 in our application (gngr <https://gngr.info>, a browser 
implemented in pure Java). The application uses Java's sand-boxing 
mechanism to restrict the access to file-system. The relevant code looks 
like this:

  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 pseudo-code,

   - gather the list of suffixes used by h2 for the db file
   - grant read,write and delete permissions for all the possible file 
   names used by h2

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!


On Tuesday, 26 August 2014 13:14:21 UTC+5:30, Harshad RJ wrote:
>
> Indeed would be great if there is documentation on that.
>
> Would be even more awesome if Constants.java added a constant for that 
> suffix string.
>
> thanks,
> Harshad
>
> On Tuesday, 26 August 2014 00:22:41 UTC+5:30, Thomas Mueller wrote:
>>
>> Hi,
>>
>> The newest version of H2 has a new mechanism to compact files (when using 
>> "shutdown defrag"), which is creating this type of temp file 
>> ("*.db.tempFile"). 
>>
>> There is currently no documentation on the files that H2 creates. I guess 
>> you need that, right?
>>
>> Regards,
>> Thomas
>>
>

-- 
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