Bug fixing issue #24902. Added parameter "fileSetPath" to Document

This commit is contained in:
Francesco Mangiacrapa 2023-03-31 12:09:06 +02:00
parent 4960b50795
commit cc84875c23
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
## [v1.0.14-SNAPSHOT]
- Fixed deploying of multiple versions of the default-lc-managers [#24875]
- Bug fixing the 'deleteFileSet' function [#24902]
## [v1.0.13] - 2023-02-23
- 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);
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
if(doc.getLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK)) {