Executing the Redetect File Type API-Call (https://guides.dataverse.org/en/latest/api/native-api.html#redetect-file-type) results in multiple Exceptions, if the original filetype is text/plain and S3 is used as File-Storage.
The result is an incorrect filetype detection and the file being removed from the index.
Executing the Redetect File Type API-Call (https://guides.dataverse.org/en/latest/api/native-api.html#redetect-file-type) results in multiple Exceptions, if the original filetype is
text/plain
andS3
is used as File-Storage. The result is an incorrect filetype detection and the file being removed from the index.Equivalent Issue from IQSS/Dataverse: https://github.com/IQSS/dataverse/issues/7527 & https://github.com/IQSS/dataverse/pull/7631
Server: All instances Date of Test: 06.07.2022 Browser: - Version: i.a. Dataverse v. 5.10.1 / v. 5.11 User: -
Preconditions:
Actions:
{{base_url}}/api/files/64/redetect?dryRun=false
Root of the Error:
FileUtil.determineFileTypeByExtension()
returnsnull
for .tmp-File withtext/plain
as File TypeServer.log with the related Errors: Server_Log_with_Redetect_File_Type_Errors.log