-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: Storage service qa/0.x and metsrw-0.3.8 are incompatible #732
Comments
NB This is currently a blocker for #660 |
@cole I see you're upgrading |
@ross-spencer I think this should be fixed now with the merging of artefactual/archivematica#1432, if you update Archivematica. It is a very strange error with a misleading message, but hopefully I can provide a bit of explanation... It seems that the store_aip client script in MCPClient sends a number of PREMIS events to SS via the API, for inclusion in the pointer METS. It looks like in the qa/1.x branch of Archivematica, when we updated to PREMIS 3, we moved the version of these events as well, but didn't add the required eventDetailInformation wrapper, so we were sending invalid PREMIS 3 events over the wire to SS. Back in SS-land, metsrw is trying to parse compression information out of event details, but metsrw 0.3.1 isn't aware of the eventDetail changes in PREMIS 3. Support was added in 0.3.7. However, the lack of support in 0.3.1 worked fine with the invalid PREMIS events coming from Archivematica, since they were still using the PREMIS 2.2 format. When updating SS to 0.3.8, metsrw sees that the event PREMIS version is 3, and looks for the eventDetailInformation wrapper, which isn't present, so it raises an AttributeError. To add some extra confusion, metsrw implements a Hopefully that is somewhat clear 😁 TLDR; try latest Archivematica qa/1.x + metsrw 0.3.8. |
Thanks @cole 👍 my branch was further behind than I thought. Updating seems to have done the trick. |
Indeed, closing this ticket as a result! |
Expected behaviour
Pointer files can be created in the Storage Service using metsrw-0.3.8.
Current behaviour
There is an error in the Store AIP microservice when upgrading from
0.3.1
to0.3.8
.Steps to reproduce
Modify the requirements in the storage service to metsre=0.3.8 and then run a trial transfer generating a compressed AIP. An error will be recorded in Store AIP:
Your environment (version of Archivematica, OS version, etc)
Docker compose, qa/0.x,
5fb80c554d3685dd3a81d182d64e70092ddcaa13
with metsrw manually upgraded to 0.3.8 (couldn't quite get pip-tools to work)For Artefactual use:
Please make sure these steps are taken before moving this issue from Review to Verified in Waffle:
The text was updated successfully, but these errors were encountered: