Closed tomwrobel closed 4 years ago
Closing along with https://github.com/tomwrobel/ora_data_model/issues/161
The issue occurred because the corrupted file is reported by file characterisation as a zip file (it isn't, but RedHat/Centos thinks it is) and sword tried to extract from it (see #161). By disabling the zip extraction behaviour, we disabled this behaviour too.
When the file attached to this trello ticket is deposited in Oxris, it raises an error in Sword as follows:
The file presents as an XML file but may be a zip file or just a problematic file. It is not a plain text XML file and does not open.
Looking at the /tmp directory in ORA, the file is being received, but no bag is being created.
For a 'healthy' binary file we get the following:
For the broken file, we're getting just
I suspect that the issue is that the code tries to unzip the binary file, and it's failing. This is related to https://github.com/tomwrobel/ora_data_model/issues/161.
Marked as post-release as not urgent
Linked Trello ticket: https://trello.com/c/zjQIwALz/781-broken-file-in-oxris-deposit