NCEAS / morpho

Morpho metadata editor
GNU General Public License v2.0
3 stars 1 forks source link

Upgrading EML version causes access policy to be lost #1030

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: ben leinfelder (ben leinfelder) Original Redmine Issue: 5885, https://projects.ecoinformatics.org/ecoinfo/issues/5885 Original Date: 2013-02-26 Original Assignee: Jing Tao


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.

mbjones commented 6 years ago

Original Redmine Comment Author Name: ben leinfelder (ben leinfelder) Original Date: 2013-02-27T16:58:42Z


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

mbjones commented 6 years ago

Original Redmine Comment Author Name: ben leinfelder (ben leinfelder) Original Date: 2013-02-27T17:19:15Z


Here is an example EML 2.0.1 file that has an accessPolicy set in SystemMetadata. When I open it by id in Morpho (after many exceptions because it cannot find the referenced data file) it asks me to upgrade to 2.1.1. I say yes, and then look at the access policy and there are none.

See the SM has an access policy: https://mn-demo-5.test.dataone.org/knb/d1/mn/v1/meta/doi:10.6085/AA/ALEXXX_015ADCP015R00_19990817.50.5

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2013-02-27T17:31:23Z


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.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2013-02-27T17:45:40Z


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.

mbjones commented 6 years ago

Original Redmine Comment Author Name: ben leinfelder (ben leinfelder) Original Date: 2013-02-27T19:54:07Z


Looks good - thanks, Jing!

mbjones commented 6 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:32:00Z


Original Bugzilla ID was 5885