Story #6296: authMN SM.accessPolicy out of synch with CN and replicaMN
Create MN->CN sync script
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.
./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)