Project

General

Profile

Story #7951

Allow CN to set NodeProperties in ldap

Added by Rob Nahf over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
d1_cn_node_registry
Target version:
Start date:
2016-12-14
Due date:
% Done:

100%

Story Points:
Sprint:

Description

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.

Associated revisions

Revision 18506
Added by Rob Nahf over 7 years ago

refs #7951: refactored NodeAccess.updateNode so that MNs don't add or remove NodeProperties with the prefix 'CN_'.

Revision 18506
Added by Rob Nahf over 7 years ago

refs #7951: refactored NodeAccess.updateNode so that MNs don't add or remove NodeProperties with the prefix 'CN_'.

History

#1 Updated by Rob Nahf over 7 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 30

added conditionals in NodeAccess.updateNode so that properties with the prefix 'CN_' are not removed or added.

#2 Updated by Rob Nahf about 7 years ago

  • Status changed from In Progress to Testing
  • % Done changed from 30 to 50

#3 Updated by Rob Nahf about 7 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)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)