From 999c7c774263edc4a19299e9dc3a868d99f225bf Mon Sep 17 00:00:00 2001 From: WANGF Date: Tue, 5 Nov 2024 20:26:36 -0500 Subject: [PATCH] Use filesystemStore bean instead of hardcoded class --- .../fao/geonet/kernel/harvest/harvester/ogcwxs/Harvester.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/ogcwxs/Harvester.java b/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/ogcwxs/Harvester.java index b023b9fc666..fc991a54692 100644 --- a/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/ogcwxs/Harvester.java +++ b/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/ogcwxs/Harvester.java @@ -911,7 +911,7 @@ private Element loadThumbnail(WxSLayerRegistry layer, Element xml, String schema Path filename = getMapThumbnail(layer); // Add downloaded file to metadata store - Store store = context.getBean(FilesystemStore.class); + Store store = context.getBean("filesystemStore", Store.class); try { store.delResource(context, layer.uuid, filename.getFileName().toString()); } catch (Exception e) {}