Allow CN to set NodeProperties in ldap
The Node documents NodeProperties property can be used to store ancillary information about the Node. This is currently under the control of the MN. It would be useful for the CN to be able to set some properties for the search UI and node display, without worrying about them being overwritten upon cn.updateNodeCapabilities() called from the MN.
The proposal is to designate the prefix "CN_" for these CN-set properties, and modify the CN.updateNodeCapabilities implementation in the NodeRegistry to prevent the MN from adding or removing those prefixed key-value pairs.
refs #7951: refactored NodeAccess.updateNode so that MNs don't add or remove NodeProperties with the prefix 'CN_'.
#3 Updated by Rob Nahf over 5 years ago
- Status changed from Testing to Closed
- % Done changed from 50 to 100
tested in 2.3.1 branch. Added an integration test to make sure the cn.updateNodeCapabilities cannot add a property beginning with 'CN_' (the reserved prefix).
Also ran ad hoc test (necessary because there is no way to add a property with the reserved prefix except via LDAP manipulation) to make sure that existing 'CN_' prefixed properties were not clobbered.
Note that properties do not appear in cn.listNodes(), but do in cn.getNodeCapabilities(nodeReference)