Univention Bugzilla – Bug 53458
samba-shares.py: TypeError: cannot use a string pattern on a bytes-like object
Last modified: 2021-06-30 18:54:24 CEST
Traceback (most recent call last): File "/usr/lib/univention-directory-listener/system/samba-shares.py", line 293, in handler new_aces = set(sum([re.findall(re_ace, acl) for acl in new['univentionShareSambaBaseDirAppendACL']], [])) File "/usr/lib/univention-directory-listener/system/samba-shares.py", line 293, in <listcomp> new_aces = set(sum([re.findall(re_ace, acl) for acl in new['univentionShareSambaBaseDirAppendACL']], [])) File "/usr/lib/python3.7/re.py", line 223, in findall return _compile(pattern, flags).findall(string) TypeError: cannot use a string pattern on a bytes-like object
Fixed the traceback and additional errors which were contained in the listener. Also migrated to new features like @SetUid(0). univention-samba4.yaml eaeeb5491607 | Changelog Bug #53458 univention-samba4 (9.0.6-2) 1c08d152a8b8 | Bug #53458: use new features in samba-shares.py listener f3eb2b54eb56 | Bug #53458: fix Python 3 migration of samba-shares.py listener eaeeb5491607 | Changelog Bug #53458 univention-samba.yaml eaeeb5491607 | Changelog Bug #53458 univention-samba (14.0.4-3) 1c08d152a8b8 | Bug #53458: use new features in samba-shares.py listener f3eb2b54eb56 | Bug #53458: fix Python 3 migration of samba-shares.py listener eaeeb5491607 | Changelog Bug #53458
Verified: * Code review * Jenkins tests * Advisories
<https://errata.software-univention.de/#/?erratum=5.0x42> <https://errata.software-univention.de/#/?erratum=5.0x43>