diff --git a/geoportal-service/CHANGELOG.md b/geoportal-service/CHANGELOG.md index 9cb5a83..22d35c2 100644 --- a/geoportal-service/CHANGELOG.md +++ b/geoportal-service/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog for org.gcube.application.geoportal-service +## [v1.2.1-SNAPSHOT] - 2024-10-02 + +- Included the file size to reduce/optimize the time to upload files to the storage hub [#28150] + ## [v1.2.0] - 2024-09-24 - Integrated the EventManager of the cms-plugin-framework [#26321] diff --git a/geoportal-service/pom.xml b/geoportal-service/pom.xml index c8c58ef..1ad86b4 100644 --- a/geoportal-service/pom.xml +++ b/geoportal-service/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.gcube.application geoportal-service - 1.2.0 + 1.2.1-SNAPSHOT Geoportal Service war 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 c3945e5..ca05a38 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 @@ -1565,7 +1565,7 @@ public class ProfiledMongoManager extends MongoManager implements MongoManagerI< log.info("Got URL {} from ID {}, filesize {}", fileUrl, f.getId(), f.getSize()); is = new URL(fileUrl).openStream(); RegisteredFile registered = ws.registerFile(new WorkspaceManager.FileOptions(f.getFilename(), is, - "Imported via gcube CMS service ", sectionFolder)); + "Imported via gcube CMS service ", sectionFolder, f.getSize())); log.info("Registered " + registered); registeredFiles.add(registered); } catch (StorageHubException | IOException e) {