Bug #5885
closed
Upgrading EML version causes access policy to be lost
Added by ben leinfelder over 11 years ago.
Updated over 11 years ago.
Category:
morpho - general
Description
Matt saved a DataONE package to the MN using R, but the EML was 2.0.1 and had no access rules in it. The SystemMetadata specified public access. When he opened it in Morpho it had him upgrade it to 2.1.1, but the access rules were lost.
My hunch is that the original SystemMetadata (from the MN) is discarded during the upgrade process and new SystemMetadata is generated from the EML fields. We should really be saving the original SystemMetadata and then just setting these fields:
-identifier (new identifier)
-obsoletes (the original identifier)
-formatId (new EML version)
-size
-checksum
If i didn't upgrade the eml version and saved it locally, the access policies can be preserved in the system metadata. So, during the upgrade process, the system metadata was lost.
Before the upgrading, the system metadata should be preserved. Then we set it backup when the upgrading is done.
After doing that, the access rules will not be lost. And the format in the system metadata still is the eml-2.1.1.
Looks good - thanks, Jing!
Original Bugzilla ID was 5885
Also available in: Atom
PDF