Ticket 48270: fail to index an attribute with a specific matching rule
Bug Description:
During index configuration, if a new rule type matching rule is added
(attribute 'nsMatchingRule') it creates an indexer.
If the indexer was not already registered (plugin_mr_bind),
In a first step it tries to find/call, for the specified matching rule, an indexer_create callback of
all the registered matching rule plugins .
If no indexer_create function exist or match the specified matching rule, then it tries to find
a registered matching rule plugins that matches the specified matching rule (plg_mr_names).
The problem occurs in the first step, because it uses 'rc' for intermediate returned code and
can erronously believe the first step was successful although no indexer_create was found.
So it skips the second step and no matching rule plugin is found.
Fix Description:
The fix consist to avoid using the 'rc' return code in intermediate slapi-pblock-get/set
https://fedorahosted.org/389/ticket/48270
Reviewed by: Noriko Hosoi (Thank you sooo much Noriko !!)
Platforms tested: F17
Flag Day: no
Doc impact: no