[ 
https://issues.apache.org/jira/browse/DIRAPI-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aliaksei Volkau closed DIRAPI-384.
----------------------------------
    Resolution: Not A Problem

Sorry, I did not know about Iterable in the Entry interface, please close the 
task

> 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
>            Priority: Major
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to