Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search, matching rules and filter error "unsupported type 0xA9" #1347

Closed
389-ds-bot opened this issue Sep 12, 2020 · 3 comments
Closed

search, matching rules and filter error "unsupported type 0xA9" #1347

389-ds-bot opened this issue Sep 12, 2020 · 3 comments
Labels
closed: fixed Migration flag - Issue
Milestone

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/48016


Description of problem:

This came up as a side effect of trouble shooting a separate search issue:

a filter with a matching rules seem to create the following error trace,
without creating any apparent result errors:
...
[05/Nov/2014:06:00:50 -0800] - <= get_extensible_filter 0
[05/Nov/2014:06:00:50 -0800] - (ou:dn:=people)
...
[05/Nov/2014:06:00:51 -0800] get_filter -  after optimize:
(&(objectClass=groupOfUniqueNames)(!))
[05/Nov/2014:06:00:51 -0800] index_subsys_assign_filter_decoders - before:
(&(objectClass=groupOfUniqueNames)(!unsupported type 0xA9))
...

I am not sure if this is really an issue, if it can be ignored, I seem to get
all the entries I expect, or not see the entries I expect to be discarded, but
there should probably be no such error, so this may need to be reviewed.

Dev / Noriko commented:
"
 The error "unsupported type 0xA9" is logged in slapi_filter_to_string_internal
(filter.c).  And 0xA9 is LDAP_FILTER_EXTENDED:

    #define LDAP_FILTER_EXTENDED 0xa9L

Indeed slapi_filter_to_string_internal does not handle LDAP_FILTER_EXTENDED...

Could it be a "not implemented yet" type of bug???
"

How reproducible:
on demand


Steps to Reproduce:

1. service dirsrv stop

2. add 32 to the error log verbose level for filter debug:
vim /etc/dirsrv/slapd-ID/dse.ldif
...
nsslapd-errorlog-level: 16416

3. service dirsrv start

4. test, for example list entries with ou that cannot have in DN the string
=people
so I expect only groups in my test sample data set:

ldapsearch -LLLx ... -b dc=example,dc=com "(&(objectClass=groupOfUniqueNames)(!(ou:dn:=people)))" dn
dn: cn=group0,ou=groups,dc=example,dc=com
...snip...
dn: cn=group49,ou=groups,dc=example,dc=com

5. review errors log

less /var/log/dirsrv/slapd-ID/errors
...
[05/Nov/2014:06:00:50 -0800] - EXTENDED
[05/Nov/2014:06:00:50 -0800] - => get_extensible_filter
[05/Nov/2014:06:00:50 -0800] - <= get_extensible_filter 0
[05/Nov/2014:06:00:50 -0800] - (ou:dn:=people)
[05/Nov/2014:06:00:50 -0800] - <= get_filter_internal 0
[05/Nov/2014:06:00:50 -0800] - <= get_filter_internal 0
[05/Nov/2014:06:00:51 -0800] - <= get_filter_list
[05/Nov/2014:06:00:51 -0800] - <= get_filter_internal 0
[05/Nov/2014:06:00:51 -0800] get_filter - before optimize:
(&(objectClass=groupOfUniqueNames)(!))
[05/Nov/2014:06:00:51 -0800] get_filter -  after optimize:
(&(objectClass=groupOfUniqueNames)(!))
[05/Nov/2014:06:00:51 -0800] index_subsys_assign_filter_decoders - before:
(&(objectClass=groupOfUniqueNames)(!unsupported type 0xA9))
[05/Nov/2014:06:00:51 -0800] index_subsys_assign_filter_decoders -  after:
(&(objectClass=groupOfUniqueNames)(!unsupported type 0xA9))
[05/Nov/2014:06:00:51 -0800] - slapi_str2filter "objectclass=referral"
[05/Nov/2014:06:00:51 -0800] - slapi_str2filter: default
[05/Nov/2014:06:00:51 -0800] - str2simple "objectclass=referral"
[05/Nov/2014:06:00:51 -0800] -  OR
[05/Nov/2014:06:00:51 -0800] -  AND
[05/Nov/2014:06:00:51 -0800] -  EQUALITY
[05/Nov/2014:06:00:51 -0800] - => slapi_attr_assertion2keys_ava_sv
[05/Nov/2014:06:00:51 -0800] - <= slapi_attr_assertion2keys_ava_sv 0
[05/Nov/2014:06:00:51 -0800] -  NOT
[05/Nov/2014:06:00:51 -0800] -  EQUALITY
[05/Nov/2014:06:00:51 -0800] - => slapi_attr_assertion2keys_ava_sv
[05/Nov/2014:06:00:51 -0800] - <= slapi_attr_assertion2keys_ava_sv 0
[05/Nov/2014:06:00:51 -0800] - slapi_filter_free type 0xA1
[05/Nov/2014:06:00:52 -0800] - slapi_filter_free type 0xA3
[05/Nov/2014:06:00:52 -0800] - slapi_filter_dup type 0xA0
[05/Nov/2014:06:00:52 -0800] - slapi_filter_dup type 0xA3
[05/Nov/2014:06:00:52 -0800] - slapi_filter_dup type 0xA2
[05/Nov/2014:06:00:52 -0800] - slapi_filter_dup type 0xA9
[05/Nov/2014:06:00:52 -0800] - => slapi_vattr_filter_test_ext
[05/Nov/2014:06:00:52 -0800] - => test_substring_filter
[05/Nov/2014:06:00:52 -0800] -     AND
[05/Nov/2014:06:00:52 -0800] - => vattr_test_filter_list
[05/Nov/2014:06:00:52 -0800] - => slapi_vattr_filter_test_ext
[05/Nov/2014:06:00:52 -0800] - => test_substring_filter
[05/Nov/2014:06:00:52 -0800] -     EQUALITY
[05/Nov/2014:06:00:52 -0800] - => test_ava_filter
[05/Nov/2014:06:00:52 -0800] - => plugin_call_syntax_filter_ava
objectClass=groupofuniquenames
[05/Nov/2014:06:00:52 -0800] - <= plugin_call_syntax_filter_ava 0
[05/Nov/2014:06:00:52 -0800] - <= test_ava_filter 0
[05/Nov/2014:06:00:52 -0800] - <= slapi_vattr_filter_test 0
[05/Nov/2014:06:00:52 -0800] - => slapi_vattr_filter_test_ext
[05/Nov/2014:06:00:52 -0800] - => test_substring_filter
[05/Nov/2014:06:00:52 -0800] -     NOT
[05/Nov/2014:06:00:52 -0800] - => slapi_vattr_filter_test_ext
[05/Nov/2014:06:00:52 -0800] - => test_substring_filter
[05/Nov/2014:06:00:52 -0800] -     EXTENDED
[05/Nov/2014:06:00:52 -0800] - => test_extensible_filter
[05/Nov/2014:06:00:52 -0800] - => test_ava_filter
[05/Nov/2014:06:00:52 -0800] - <= test_ava_filter -1
[05/Nov/2014:06:00:52 -0800] - => test_ava_filter
[05/Nov/2014:06:00:52 -0800] - => plugin_call_syntax_filter_ava ou=people
[05/Nov/2014:06:00:52 -0800] - <= plugin_call_syntax_filter_ava -1
[05/Nov/2014:06:00:52 -0800] - <= test_ava_filter -1
[05/Nov/2014:06:00:53 -0800] - <= test_extensible_filter -1

Note: this is a benign error message that only occurs when debug logging is enabled.
@389-ds-bot 389-ds-bot added the closed: fixed Migration flag - Issue label Sep 12, 2020
@389-ds-bot 389-ds-bot added this to the 1.3.5.0 milestone Sep 12, 2020
@389-ds-bot
Copy link
Author

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2015-10-07 03:37:47

Reviewed by Rich (Thanks!!)

Pushed to master:
3cbdfa6..21dda61 master -> master
commit 21dda61

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2017-02-11 22:58:43

Metadata Update from @nhosoi:

  • Issue assigned to nhosoi
  • Issue set to the milestone: 1.3.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: fixed Migration flag - Issue
Projects
None yet
Development

No branches or pull requests

1 participant