artefactual-labs / umcu-uploader

UMCU Uploader
Apache License 2.0
1 stars 1 forks source link

upload to Dataverse fails when AIP is uncompressed #98

Closed npoppelier closed 1 year ago

npoppelier commented 1 year ago

Download of AIP and upload to Dataverse results in an exception (at which point the application aborts without feedback in the uploader GUI) when the AIP is uncompressed, i.e. in TAR form. The processing configurations the UMCU uses specify uncompressed AIP's, as we discussed several times in the Zoom meetings.

The uploader should download the AIP, determine the file type and use different methods of opening it, depending on the file type, instead of just opening it as a 7Z archive. See uploader/Dataverse/jobs.py, line 46.