JCRVLT-830 check if a subfolder can be removed#416
Conversation
|
I made this feature configurable via OSGI. That should be only a temporary measure until we are sure that there are no side-effects. But it required a series of changes to otherwise unrelated classes to pass on that flag. I added the OSGI property to both the FSPackageRegistry and the JcrPackageRegistry. Default is to have this feature enabled. |
|
The initial focus for the review should be to make sure that the existing behavior (which can delete content unintentionally) can be preserved with the correct configuration. I understand that that adding this configuration increases the size of the change quite a bit, so I wonder if a system property (or env variable) would be a better solution to keep the change smaller. |
|



Implemented some additional checks to prevent the removal of unexpected files.