From af647a523a9dd51729bc55a22c3cd34c07de9d91 Mon Sep 17 00:00:00 2001 From: Thierry Bordaz Date: Wed, 27 Sep 2017 16:04:07 +0200 Subject: [PATCH] Ticket 48973 Indexing a ExactIA5Match attribute with a IgnoreIA5Match matching rule triggers a warning Bug Description: When a index configuration entry (i.e. "cn=,cn=index,cn=,..") contains one or more nsMatchingRule values. A weird warning message can be logged. This message should not be a warning, it is more a debug message. Indeed it exists two mechanisms to register MR. So to retrieve an approriate MR the server is first using the old mechanism and if it fails it uses the new one. The old mechanism was going throught the set of indexer function checking one that supports the MR specified in nsMatchingRule. Usually indexer function are not defined and it fallback to new mechanism. In case of several nsMatchingRule, an indexer function is assigned to an MR. It is normal that a given MR does not manage syntax it is not designed for. so the message should be DEBUG. The message is not that frequent because using nsMatchingRule different from the attribute syntax is not frequent. This erronous message came from https://fedorahosted.org/389/ticket/48745 Fix Description: Switch message from warning to debug https://pagure.io/389-ds-base/issue/48973 Reviewed by: ? Platforms tested: F23 Flag Day: no Doc impact: no --- ldap/servers/slapd/plugin_mr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap/servers/slapd/plugin_mr.c b/ldap/servers/slapd/plugin_mr.c index bd2baff..c6cc6b6 100644 --- a/ldap/servers/slapd/plugin_mr.c +++ b/ldap/servers/slapd/plugin_mr.c @@ -689,7 +689,7 @@ default_mr_indexer_create(Slapi_PBlock *pb) * MR plugin. We need to check the selected plugin handle the expected OID */ if (oid == NULL || !charray_inlist(pi->plg_mr_names, oid)) { - slapi_log_err(SLAPI_LOG_WARNING, "default_mr_indexer_create", "Plugin [%s] does not handle %s\n", + slapi_log_err(SLAPI_LOG_DEBUG, "default_mr_indexer_create", "Plugin [%s] does not handle %s\n", pi->plg_name, oid ? oid : "unknown oid"); goto done; -- 2.5.5