Project

General

Profile

Task #6297

Story #6296: authMN SM.accessPolicy out of synch with CN and replicaMN

Create MN->CN sync script

Added by ben leinfelder over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Start date:
12/12/2013
Due date:
% Done:

0%

Estimated time:

Description

As a first pass, this could be a good way to A) fix the issues we have currently with GOA packages being private on the CN and B) learn the ins and outs of the method calls before including in the Metacat project as part of its normal operations when access control rules are updated.

Something like:

./synchACL.sh <authMN> <targetCN> <listOfPids> [authMN certificate path]

And the calls would be along the lines of:

# loop through the given list of identifiers
for each <pid> in <listOfPids>:
# get the SystemMetadata.serialVersion from the CN's SystemMetadata
serialVersion =targetCN.getSystemMetadata(pid).serialVersion
# get the authMN's SystemMetadata.accessPolicy
sysMeta = authMN.getSystemMetadata(pid)
# set the SystemMetadata.accessPolicy on the CN
targetCN.setAccessPolicy(sysMeta.accessPolicy, serialVersion)

Methods referenced:
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNRead.getSystemMetadata
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNRead.getSystemMetadata
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNAuthorization.setAccessPolicy

Types referenced:
http://mule1.dataone.org/ArchitectureDocs-current/apis/Types.html#Types.SystemMetadata
http://mule1.dataone.org/ArchitectureDocs-current/apis/Types.html#Types.AccessPolicy

History

#1 Updated by Peter Slaughter over 5 years ago

  • translation missing: en.field_remaining_hours set to 0.0
  • Status changed from New to Resolved

Also available in: Atom PDF