#48497 extended search without MR indexed attribute prevents later indexing with that MR
Closed: Fixed None Opened 4 years ago by tbordaz.

This bug was found while fixing https://fedorahosted.org/389/ticket/48270

When a extended search specifies a given matching rules, it loads the matching rule (plugin_mr_filter_create) specifying SLAPI_PLUGIN_MR_FILTER_CREATE_FN.
But at this point SLAPI_PLUGIN_MR_INDEXER_CREATE_FN remains undefined.

Later when we will try to index the attribute with this matching rule, it will find the slapdplugin registered in global_mr_oids but with no indexer_create function.
So the attempt to add the 'nsMatchingRule' value to the index entry will trigger this message:

from DSE modify: line 0: unknown or invalid matching rule "caseIgnoreIA5Match" in index configuration (ignored)

And the indexing of the added 'nsMatchingRule' will be ignored.

This bug can be reproduced systematically but depends on 48270 (else indexing fails anyway)


Formatting is off, but looks good.

Thanks Mark and thanks Rich for those reviews (I updated the attached patch to change the formatting)

'''Master'''

<fix>
Counting objects: 11, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.30 KiB, done.
Total 6 (delta 4), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
d89efda..f230d32 master -> master

commit f230d32
Author: Thierry Bordaz tbordaz@redhat.com
Date: Fri Mar 4 18:48:07 2016 +0100

<test case="">
Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 2.50 KiB, done.
Total 6 (delta 4), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
f230d32..b9dd886 master -> master

commit b9dd886
Author: Thierry Bordaz tbordaz@redhat.com
Date: Mon Mar 7 17:55:27 2016 +0100

'''1.3.4'''

<fix +="" test="" case="">

Counting objects: 18, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 3.60 KiB, done.
Total 10 (delta 6), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
8081159..70670f2 389-ds-base-1.3.4 -> 389-ds-base-1.3.4

commit 70670f2
Author: Thierry Bordaz tbordaz@redhat.com
Date: Fri Mar 4 18:48:07 2016 +0100

Fix CI test

4fc76f2..6575db8 master -> master
commit 6575db8

67da983..c6ebe12 389-ds-base-1.3.4 -> 389-ds-base-1.3.4
commit c6ebe12

Metadata Update from @mreynolds:
- Issue assigned to tbordaz
- Issue set to the milestone: 1.3.4.9

3 years ago

Login to comment on this ticket.

Metadata