Skip to content

Commit

Permalink
While using the filesystem harvester: Delete datadir when deleting me…
Browse files Browse the repository at this point in the history
…tadata from db. This needs to be reported in GN.
  • Loading branch information
sebr72 committed Jan 8, 2024
1 parent 6330dbe commit a787f39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/org/fao/geonet/kernel/mef/Importer.java
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ public static void importRecord(String uuid, MEFLib.UuidAction uuidAction, List<
if (Log.isDebugEnabled(Geonet.MEF)) {
Log.debug(Geonet.MEF, "Deleting existing metadata with UUID : " + uuid);
}
Store store = context.getBean("resourceStore", Store.class);
store.delResources(context, uuid, true);
metadataManager.deleteMetadata(context, dm.getMetadataId(uuid));
metadataManager.flush();
}
Expand Down

0 comments on commit a787f39

Please sign in to comment.