Skip to content

LdapTemplate.find method is NOT taking the attributesToReturn from LdapQuery #465

@xuweigui

Description

@xuweigui

LdapQuery allows user to set attributesToReturn, but when calling this method

public <T> List<T> find(LdapQuery query, Class<T> clazz).

The attributes are just ignored, and overwritten by following code in "public List find(Name base, Filter filter, SearchControls searchControls, final Class clazz)"

String[] attributes = this.odm.manageClass(clazz);
searchControls.setReturningAttributes(attributes);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions