task_24859 #14

Merged
francesco.mangiacrapa merged 7 commits from task_24859 into master 2023-04-05 10:35:03 +02:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit cc84875c23 - Show all commits

View File

@ -3,6 +3,7 @@
## [v1.0.14-SNAPSHOT] ## [v1.0.14-SNAPSHOT]
- Fixed deploying of multiple versions of the default-lc-managers [#24875] - Fixed deploying of multiple versions of the default-lc-managers [#24875]
- Bug fixing the 'deleteFileSet' function [#24902]
## [v1.0.13] - 2023-02-23 ## [v1.0.13] - 2023-02-23
- Integrating new facilities and bug fixing released in the Plugins - Integrating new facilities and bug fixing released in the Plugins

View File

@ -807,7 +807,8 @@ public class ProfiledMongoManager extends MongoManager implements MongoManagerI<
RegisteredFileSet fs = Serialization.convert(wrapper.getByPath(path).get(0), RegisteredFileSet.class); RegisteredFileSet fs = Serialization.convert(wrapper.getByPath(path).get(0), RegisteredFileSet.class);
log.debug("Going to delete {}", fs); log.debug("Going to delete {}", fs);
doc = triggerEvent(doc,EventExecutionRequest.Events.ON_DELETE_FILESET,new Document("force",force).append("path",path)); //Updated by Francesco. See #24902
doc = triggerEvent(doc,EventExecutionRequest.Events.ON_DELETE_FILESET,new Document("force",force).append("path",path).append("fileSetPath", path));
// Actually delete only if event was ok // Actually delete only if event was ok
if(doc.getLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)) { if(doc.getLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)) {