Open 389-ds-bot opened 4 years ago
Comment from nhosoi (@nhosoi) at 2016-08-26 01:26:43
Found some working cases.
Using C.4.3.4. Greater-Than or Equal-to Example.
(The other operations share the same symptom).
locality:2.16.840.1.113730.3.3.2.18.1:=>= Québec
Returns nothing. Not working.
locality:fr:=>= Québec
Returns nothing. Not working.
locality:2.16.840.1.113730.3.3.2.18.1.4:=Québec
Returns expected results. Working.
locality:fr.4:=Québec
Although mozldap search works,
Openldap search does not accept this syntax: Bad search filter (-7)
For more cases, see also https://access.redhat.com/documentation/en-US/Red_Hat_Directory_Server/8.2/html/Administration_Guide/Searching_an_Internationalized_Directory.html
Comment from firstyear (@Firstyear) at 2016-08-26 05:52:42
Can I be a pain and ask you to attach the ldif of the database you were testing these searches with?
Comment from nhosoi (@nhosoi) at 2016-08-26 06:54:02
test ldif containing i18n data i18ntest.ldif
Comment from nhosoi (@nhosoi) at 2016-08-26 06:56:31
I've attached my data.
The examples above are from the Doc... But the range search works and does not work in the same way. locality:fr:=>= Québec ...
Comment from nhosoi (@nhosoi) at 2016-09-07 02:26:59
Note: need to investigate older versions
Comment from nhosoi (@nhosoi) at 2017-02-11 22:56:56
Metadata Update from @nhosoi:
Comment from mreynolds (@mreynolds389) at 2017-05-08 22:37:00
Metadata Update from @mreynolds389:
The issue is partially covered here, and the tests pass: https://github.com/389ds/389-ds-base/blob/91c4f62fc0ae58f1f86a7b5875964f38612505fb/dirsrvtests/tests/suites/filter/filter_with_non_root_user_test.py
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/48971
Sample filters.
Note: the attribute title is indexed with matching rule 2.16.840.1.113730.3.3.2.28.1.6. $ ldapsearch [...] '(title:2.16.840.1.113730.3.3.2.15.1.6:=CEO)' title dn: uid=ntest,ou=People,dc=example,dc=com title: CEO
But both searches with the filter '(title:2.16.840.1.113730.3.3.2.28.1.6:=>=CEO)' and '(title:2.16.840.1.113730.3.3.2.28.1.6:=<=CEO)' return none.
Access log:
At least, the index is being used and nothing is found.