Thanks. Looking forward to the release. Is there a workaround for this which I can use meanwhile?
Thanks, Neha On Sun, Nov 9, 2014 at 10:32 PM, Emmanuel Lécharny <[email protected]> wrote: > 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 > -- Love and Luck, Neha
