A combination of SA_IMM_ATTR_SASTRINGT and SA_IMM_ATTR_DN should be treated as SA_IMM_ATTR_SANAMET.
Some places in IMM code miss the check for SaStringT
Example:
ImmModel::rtObjectCreate() } else if (attrValues->n.attrValueType == SA_IMM_ATTR_SANAMET && !longDnsPermitted) { ... if(attrValues->n.attrValue.val.x.size >= SA_MAX_UNEXTENDED_NAME_LENGTH) { LOG_NO("ERR_NAME_TOO_LONG: Attribute '%s' has long DN. " "Not allowed by IMM service or extended names are disabled", attrName.c_str()); err = SA_AIS_ERR_NAME_TOO_LONG; goto rtObjectCreateExit; }
default (5.2) [staging:836f2d]
changeset: 8543:836f2d73d8f3
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Wed Jan 25 17:13:09 2017 +0700
summary: imm: Add missing checks for SaStringT attributes with ATTR_DN flag [#2270]
opensaf-5.1.x [staging:f164ce]
changeset: 8544:f164ce48fcab
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Wed Jan 25 17:13:09 2017 +0700
summary: imm: Add missing checks for SaStringT attributes with ATTR_DN flag [#2270]
opensaf-5.0.x [staging:d433a2]
changeset: 8545:d433a25db383
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Wed Jan 25 17:13:09 2017 +0700
summary: imm: Add missing checks for SaStringT attributes with ATTR_DN flag [#2270]
Related
Commit: [836f2d]
Commit: [d433a2]
Commit: [f164ce]
Tickets:
#2270