diff --git a/geoportal-service/CHANGELOG.md b/geoportal-service/CHANGELOG.md index f91a6e3..2a8e73b 100644 --- a/geoportal-service/CHANGELOG.md +++ b/geoportal-service/CHANGELOG.md @@ -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 diff --git a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/engine/mongo/ProfiledMongoManager.java b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/engine/mongo/ProfiledMongoManager.java index c1b0e09..2a16725 100644 --- a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/engine/mongo/ProfiledMongoManager.java +++ b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/engine/mongo/ProfiledMongoManager.java @@ -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)) {