[389-devel] Please review: [389 Project] #543: Sorting with attributes in ldapsearch gives incorrect result
Noriko Hosoi
nhosoi at redhat.com
Fri Feb 1 00:58:58 UTC 2013
https://fedorahosted.org/389/ticket/543
https://fedorahosted.org/389/attachment/ticket/543/0001-Ticket-543-Sorting-with-attributes-in-ldapsearch-giv.patch
Bug description: In the server side sorting compare function
compare_entries_sv, if multiple attribute types are specified,
the sort spec for each attribute is scanned one by one in the
for loop. In the for loop, instead of using the "current"
spec, the first spec is kept using. If the attribute types
have different syntaxes (e.g., cis, tel), then the first
syntax is unexpectedly selected for the second syntax.
Fix description: This patch correctly uses the current spec
in the for loop.
More information about the 389-devel
mailing list