Project

General

Profile

Actions

Task #6297

closed

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

Create MN->CN sync script

Added by ben leinfelder over 10 years ago. Updated about 10 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

Actions #1

Updated by Peter Slaughter about 10 years ago

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

Also available in: Atom PDF