Changes

Summary

  1. Various improvements: (details)
Commit 08de530f0381c4372b760a514fe73e90ec01673e by Lampros Smyrnaios
Various improvements:
- Handle the case when "fileUtils.constructS3FilenameAndUploadToS3()" returns "null", in "processBulkImportedFile()".
- Avoid an "IllegalArgumentException" in "Lists.partition()" when the number of files to bulkImport are fewer than the number of threads available to handle them.
- Include the last directory's "/" divider in the fileDIR group of "FILEPATH_ID_EXTENSION" regex (renamed from "FILENAME_ID_EXTENSION").
- Fix an incomplete log-message.
- Provide the "fileLocation" argument in the "DocFileData" constructor, in "processBulkImportedFile()", even though it's not used after.
The file was modifiedsrc/main/java/eu/openaire/urls_controller/models/FileLocationData.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/services/BulkImportServiceImpl.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/util/FileUtils.java (diff)