[SPRNET-1534] Object Definitions with identical values for id="..." and name="..." are excluded from GetObjectsByType(...) and GetObjects<T>() calls Created: 27/Nov/12 Updated: 11/Jan/13 Resolved: 27/Nov/12
|Affects Version/s:||2.0 M1|
|Fix Version/s:||2.0 M2|
|Reporter:||Steve Bohlen||Assignee:||Steve Bohlen|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
When objects are registered having been assigned both an id="foo" and name="bar", the object is assigned the value "foo" as its name and the value "bar" as an alias. When calls to .GetObjectsByType(...) and .GetObject<T>() are made, any object whose name appears registered as an alias is removed from the set of resolved objects.
If id="foo" and name="foo" both the object's name and its alias(es) are assigned the value of "foo". When .GetObjectsOfType(...) or .GetObjects<T>() is invoked, this has the side-effect of removing the object from the returned results (since its name is also an alias).
|Comment by Steve Bohlen [ 27/Nov/12 ]|
Introduce logic to prevent registration of alias value when same as ObjectDefintition name value.