DB Files permissions

#1

Hello,

is it possible to configure default file permissions on created files? ObjectDB creates DB files with 644 linux permissions. We would need 664.

This should apply also to backup files created by following code:

EntityManager em = database.createEntityManager();
TypedQuery<Thread> backupQuery = em.createQuery("objectdb backup", Thread.class);
backupQuery.setParameter("target", getBackupDirectory());
backupQuery.setParameter("name", backupSubdir);
#2

ObjectDB creates files using the default permission settings, so you will have to change the permissions after the file is created (possibly automatically from your application).

ObjectDB Support
#3

Starting Build 2.8.4_01 no stack overflow is expected when the objectdb.conf cannot be accessed. ObjectDB uses an internal objectdb.conf resource (in the objectdb.jar file) when no external objectdb.conf file exists, and this configuration is now used also in this case. In addition, starting build 2.8.4_02 an exception will be written to the standard error in this case.

ObjectDB Support

Reply