Bug 2064689 - dsidm account subtree-status fails with TypeError
Summary: dsidm account subtree-status fails with TypeError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: 389-ds-base
Version: 12.2
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: DS12.2
: dirsrv-12.2
Assignee: mreynolds
QA Contact: LDAP QA Team
Zuzana Zoubkova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-16 10:58 UTC by bsmejkal
Modified: 2023-05-30 09:41 UTC (History)
6 users (show)

Fixed In Version: redhat-ds-12-9020020230314150545.1674d574
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-30 09:40:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker IDMDS-2870 0 None None None 2023-03-15 08:36:53 UTC
Red Hat Issue Tracker IDMDS-2933 0 None None None 2023-04-11 07:31:06 UTC
Red Hat Product Errata RHBA-2023:3344 0 None None None 2023-05-30 09:41:09 UTC

Description bsmejkal 2022-03-16 10:58:09 UTC
Description of problem:
Running "dsidm account subtree-status" command fails with TypeError.


Version-Release number of selected component (if applicable):
389-ds-base-2.0.14-3.module+el9dsrv+14387+a6c313de.x86_64
389-ds-base-2.0.14-1.el9.x86_64 

How reproducible:
Always

Steps to Reproduce:
1. 
#  dsidm -D "cn=Directory Manager" ldap://localhost -b "dc=example,dc=com" account subtree-status "ou=People,dc=example,dc=com" -f "(uid=*)"


Actual results:

DEBUG: expected list of strings or None
Traceback (most recent call last):
  File "/usr/sbin/dsidm", line 140, in <module>
    result = args.func(inst, dsrc_inst['basedn'], log, args)
  File "/usr/lib/python3.9/site-packages/lib389/cli_idm/account.py", line 87, in subtree_status
    account_list = Accounts(inst, basedn).filter(filter, scope)
  File "/usr/lib/python3.9/site-packages/lib389/_mapped_object.py", line 1264, in filter
    results = self._instance.search_ext_s(
  File "/usr/lib/python3.9/site-packages/lib389/__init__.py", line 174, in inner
    return f(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/ldap/ldapobject.py", line 863, in search_ext_s
    msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit)
  File "/usr/lib/python3.9/site-packages/lib389/__init__.py", line 174, in inner
    return f(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/ldap/ldapobject.py", line 853, in search_ext
    return self._ldap_call(
  File "/usr/lib/python3.9/site-packages/lib389/__init__.py", line 174, in inner
    return f(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/ldap/ldapobject.py", line 324, in _ldap_call
    result = func(*args,**kwargs)
TypeError: expected list of strings or None
ERROR: Error: expected list of strings or None


Expected results:


Additional info:

Comment 1 mreynolds 2023-01-06 14:49:23 UTC
Upstream ticket: 

https://github.com/389ds/389-ds-base/issues/5593

Comment 7 errata-xmlrpc 2023-05-30 09:40:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (redhat-ds:12 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:3344


Note You need to log in before you can comment on or make changes to this bug.