You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Aliaksei Volkau (Jira)" <ji...@apache.org> on 2022/06/06 23:32:00 UTC

[jira] [Created] (DIRAPI-384) Class Entry does not support storing multiple attributes with the same name

Aliaksei Volkau created DIRAPI-384:
--------------------------------------

             Summary: Class Entry does not support storing multiple attributes with the same name 
                 Key: DIRAPI-384
                 URL: https://issues.apache.org/jira/browse/DIRAPI-384
             Project: Directory Client API
          Issue Type: Bug
    Affects Versions: 2.1.0
            Reporter: Aliaksei Volkau


I came across a situation where a user has multiple groups specified (memberOf attribute) and when querying the attribute, I get the only and last value.

As far as I understand, this is due to the fact that the attributes are stored in the Map with a unique key "attribute name", which eliminates getting multiple parameters with the same name.

/** A map containing all the attributes for this entry */
private Map<String, Attribute> attributes = new HashMap<>();

Can this be fixed somehow? I don’t want to make an additional request for a record to get a list of its groups, and double the load on the LDAP server



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org