Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the bug
During preprocessing, a check to confirm if a preservation package exists for each item (article version or collection version). For an article, in addition to the JSON metadata hash, this requires calculating the payload size which is the sum of the total size of item files, the size of item UAL_RDM folder in curation staging storage in bytes and the size of the JSON metadata file from Figshare; all in bytes. The UAL_RDM folder is contained in the curation folder of an article version. If the curation folder for an article version does not exist, an exception is thrown and preprocessing does not proceed to other articles.
Fix
Skip the article without a curation folder and log an error.
Steps To Reproduce
- Select 2 or more article ids.
- Remove the curation folder for the first id.
- Run the software with --ids {article id with removed curation folder} [other article ids]