#48970 Server Side Sorting crashes the server.
Closed: wontfix Opened by nhosoi.

Valgrind output against this command line is attached.
$ ldapsearch [...] -b "dc=example,dc=com" -E sss=title:2.16.840.1.113730.3.3.2.28.1.6 '(title=*)' title
Note: the title is indexed with a locale 2.16.840.1.113730.3.3.2.28.1, which may or may not be a condition to cause this error.
dn: cn=title,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
objectClass: top
objectClass: nsIndex
cn: title
nsSystemIndex: false
nsIndexType: pres
nsIndexType: eq
nsIndexType: sub
nsMatchingRule: 2.16.840.1.113730.3.3.2.28.1

The matching rule is not needed when indexing the attribute. Also, the simple server side sorting has no issue.

The OID or locale triggers the crash.
{{{
-E sss=sn:en
^^^
}}}

Mark, if target milestone needs to be 1.2.11, please feel free to update it. Thanks!

Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1371283

Looks good. Thanks, Mark!!

32881be..43997fa master -> master
commit 43997fa8782ca93e20595ae10e303d85e5b765f4
Author: Mark Reynolds mreynolds@redhat.com
Date: Tue Aug 30 10:32:45 2016 -0400

19c4638..c9dc154 389-ds-base-1.3.4 -> 389-ds-base-1.3.4
commit c9dc1547b9c96967539b5f3caf7aedfbff3d475a

4108fbd..30ecd3c 389-ds-base-1.3.3 -> 389-ds-base-1.3.3
commit 30ecd3cb74a6f6d03ae37e7d39e7175820209103

0d5afb2..dba6ff0 389-ds-base-1.2.11 -> 389-ds-base-1.2.11
commit dba6ff0c2fc12881179beaeb1d62c97c8d487c5b

Metadata Update from @nhosoi:
- Issue assigned to mreynolds
- Issue set to the milestone: 1.2.11.33

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2029

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)

Metadata