Skip to content

Bug: Preprocessing of articles stops if curation folder does not exist for an article #105

Closed
@HafeezOJ

Description

@HafeezOJ

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

  1. Select 2 or more article ids.
  2. Remove the curation folder for the first id.
  3. Run the software with --ids {article id with removed curation folder} [other article ids]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions