https://redmine.dataone.org/https://redmine.dataone.org/favicon.ico2012-04-03T23:18:38ZDataONE TasksInfrastructure - Bug #2572: Metacat MN replication fails when EML describing access control is replicated before the datahttps://redmine.dataone.org/issues/2572?journal_id=117072012-04-03T23:18:38ZBen Leinfelderleinfelder@nceas.ucsb.edu
<ul><li><strong>Category</strong> set to <i>Metacat</i></li><li><strong>Assignee</strong> set to <i>Ben Leinfelder</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li></ul><p>From the standalone Metacat perspective:<br>
1) data file is inserted in Metacat<br>
2) EML is inserted in Metacat and the EML describes access control rules for the data file<br>
3) docid-guid mappings are created for the data file so that the docid of the data file (in EML) can be found in the Metacat DB and linked to the access control rules (stored per guid).</p>
<p>From the Metacat replication target perspective<br>
1) the EML file is replicated from source to target<br>
2) the data file's access control rules are parsed and written to the DB<br>
3) this includes the data's docid->guid mapping<br>
4) when there is an attempt to replicate the actual data file, it fails because the identifier is already "in use" but the actual object is not replicated.</p>
<p>This is tricky because we need that data docid->guid mapping in order for Metacat to function as it has been WRT data access control rules as specified in EML documents. But we can't go willy nilly ignoring the fact that an identifier is now in use when we attempt to replicate the data file.</p>
Infrastructure - Bug #2572: Metacat MN replication fails when EML describing access control is replicated before the datahttps://redmine.dataone.org/issues/2572?journal_id=117432012-04-09T23:02:25ZBen Leinfelderleinfelder@nceas.ucsb.edu
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>I think our recent change to NOT write EML-embedded access rules to the DB when handling EML in the D1 API will make this issue go away. The only reason we were getting these phantom docid-guid mappings was because we processed and wrote access control rules for data files that happened to be described in EML files.</p>