- **status**: review --> fixed
- **Comment**:
default (5.2) [staging:836f2d]
changeset: 8543:836f2d73d8f3
user: Hung Nguyen <hung.d.ngu...@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.ngu...@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.ngu...@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]
---
** [tickets:#2270] imm: Missing check for SaString attributes with ATTR_DN
flag**
**Status:** fixed
**Milestone:** 5.0.2
**Created:** Wed Jan 18, 2017 11:03 AM UTC by Hung Nguyen
**Last Updated:** Mon Jan 23, 2017 08:12 AM UTC
**Owner:** Hung Nguyen
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;
}
~~~
---
Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets