Skip to Content.
Sympa Menu

shibboleth-dev - Maintaining order for multi-valued attributes

Subject: Shibboleth Developers

List archive

Maintaining order for multi-valued attributes


Chronological Thread 
  • From:
  • To:
  • Subject: Maintaining order for multi-valued attributes
  • Date: Wed, 29 Sep 2004 16:36:44 +0530

SimpleAttributeDefinition does not maintain order of attribute values for
multi-valued attributes, even if the dependencies resolve to ordered
attribute values.

Although data sources such as LDAP do not maintain order of different values
for a multi-valued attribute, for other repositories, the order of the
values may be important.

For instance, the order of rows returned by a JDBC query may be relevant to
an application. Similarly, queries written against a proprietary data
repository may also returned ordered values for multi-valued attributes.

I don't believe that SAML Attribute values are ordered either, which in a
way justifies not maintaining the order. However, it prevents writing
CustomDataConnectors or CustomAttributeDefinitions that may rely on the
attribute value order.

It turns out that a simple fix in the SimpleAttributeDefinition can maintain
original order of attribute values. If the usage of "HashSet" is replaced
with a "LinkedHashSet", the order of values can be maintained without much
significant overhead.

Any thoughts?

--
Vishal Goenka
SunGard SCT
Advisory Technical Architect, Luminis Solutions
+91 80 511 42767 (Office)
+91 98455 46487 (Mobile)
Time Zone: GMT +5:30

www.sungardsct.com



  • Maintaining order for multi-valued attributes, vgoenka, 09/29/2004

Archive powered by MHonArc 2.6.16.

Top of Page