Open alexwlchan opened 2 years ago
This is still present in https://github.com/artefactual/archivematica/commit/5210e54c85362311a1fa0f99df5f046740bea6b5. The problem seems to be the create_transfer_mets
client script doesn't consider some of the fields related to right statements are nullable. Nullable fields that represent dates are handled through a clean_date helper which solves this problem. Even though test coverage of the script is relatively high the fixtures used are very complete.
We've got a bag which is failing at the "Generate METS.xml" step, we think because of something in the rights.csv.
Expected behaviour The bag is stored correctly.
Current behaviour All the steps prior to "Generate METS.xml" document complete successfully:
That step fails with exit code 1 and the following stderr:
Steps to reproduce
Upload this example package to Archivematica: rights_example.zip. It contains three files:2.
Send it for processing through Archivematica, using our default processing config.
Your environment (version of Archivematica, operating system, other relevant details) We're running the Docker images created from the v1.13.2 tag in the artefactual/archivematica repo, with just a couple of files replaced with custom versions.
As far as I can tell, this is where the error is introduced: https://github.com/artefactual/archivematica/blob/4f4605453d5a8796f6a739fa9664921bdb3418f2/src/MCPClient/lib/clientScripts/create_transfer_mets.py#L497
It's possible for
license_section.licenseterms
to beNone
, and then what that information is written into the PREMIS, the Premis plugin fails. If I add anif license_section.licenseterms is not None:
above that line, the transfer package is processed successfully.For Artefactual use:
Before you close this issue, you must check off the following: