-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
5.4.1.Final
-
None
I took a look at the source, all candidate directories for the backup are sent through the org.modeshape.web.jcr.rest.handler.RestRepositoryHandler.isValidDir function:
private boolean isValidDir( String dir ) { if (StringUtil.isBlank(dir)) { return false; } File dirFile = new File(dir); return dirFile.exists() && dirFile.canWrite() && dirFile.isDirectory(); }
As you can see, the directory is being checked for writability.
Since ModeShape is supposed to restore (i.e. read) that backup, I don't see why it would need write permissions to do that.
The error message is misleading, too, since it says the backup cannot be found, not that write permissions were missing.
My expectation here is that at least the error message is fixed.
But if ModeShape indeed never writes anything into the backup directory, then it should not require the backup directory to be writable.