directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
Subject Re: Getting a Sorted result by setting SortControl
Date Sun, 09 Nov 2014 17:02:57 GMT
Le 09/11/14 17:52, Emmanuel Lécharny a écrit :
> Le 09/11/14 17:17, Neha Rawat a écrit :
>> Hi,
>> I am using apacheds 2.0.0_M17.
>> I am using javax.naming.ldap.SortControl to get sorted result for a simple
>> query. Here is some code.
>>
>>         String sortKey = "cn";
>>         ctx.setRequestControls(new Control[] { new SortControl(sortKey,
>> Control.CRITICAL) });
>>             NamingEnumeration enm =
>> ctx.search("dc=example,dc=com",  "objectClass=*)", null);
>>
>>
>>
>>
>> When I comment this line -- "ctx.setRequestControls(new Control[] { new
>> SortControl(sortKey, Control.CRITICAL) });", the query is successful and I
>> get correct results.
>>
>> Could you help me understand how to use SortControl? Am I missing something
>> here?
> You are doing nothing wrong, there is a bug in the Sort Control decoding
> on the server (as a matter of fact, we discovered that 2 days ago and it
> has been fixed on friday).
>
> We are goibg to cut a release as of today, which will be available in
> the next few days. The binaries should be available for testing tomorrow
> morning if everything goes well.
>
> Hope it helps.
>
FTR, the issue is https://issues.apache.org/jira/browse/DIRAPI-210

Mime
View raw message