Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
FileContentStore: Do not cascade-delete empty directories that are symbolic links #10
As mentioned by Heiko Robert on IRC, the default Alfresco FileContentStore deletes empty directories even if they are symbolic links. This should not happen. Cascade-deletion should stop when a symbolic link is encountered. Since this addon provides a custom FileContentStore (based on the default), this should and can be corrected as part of this project. Since all currently supported Alfresco versions (4.0+) now require Java 7 or higher, it is safe to rely on the Java NIO features to handle symbolic links.
added a commit
Mar 24, 2018
Core of the issue (cascade deletion prevention on symbolically linked directories) has been addressed. Merge into 4.2/5.0 branches are pending resolution of a minor quirk found when switching file content store handling (mostly) to the java.nio.file package: deletion via java.nio.file.Files#delete(Path) does not (always) work and causes side-effects when (re-)creating directory structures for a new content file about to be written.