task_28150 #19

Merged
francesco.mangiacrapa merged 14 commits from task_28150 into master 2024-10-04 15:07:01 +02:00
3 changed files with 6 additions and 2 deletions
Showing only changes of commit 390d989262 - Show all commits

View File

@ -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]

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.application</groupId>
<artifactId>geoportal-service</artifactId>
<version>1.2.0</version>
<version>1.2.1-SNAPSHOT</version>
<name>Geoportal Service</name>
<packaging>war</packaging>

View File

@ -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) {