Univention Bugzilla – Bug 54572
[5.0-1]u-group-membership-cache returns None instead of empty list
Last modified: 2022-10-11 16:29:39 CEST
Also needed for 5.0-1 +++ This bug was initially created as a clone of Bug #54561 +++ univention-group-membership-cache returns unexpected values if a cache entry has no values. A library using the cache expected that an empty list is returned if an entry has no value - the usual use case is to iterate over the returned values. I would also expect that an empty list is returned. I would also expect that cache.get() returns [], not None. Although one could argue that a user of the cache has to check if the return value is None. Traceback from customer environment, with installed office365 app. "/usr/lib/pymodules/python2.7/univention/office365/udm_helper.py", line 146, in group_in_azure alias_users = set(map(unicode.lower, univentionOffice365ADConnectionAlias.get(self.adconnection_alias))) TypeError: argument 2 to map() must support iteration The issue exists in UCS 4 + 5
Package: univention-group-membership-cache Version: 2.0.0-6A~5.0.0.202203211837 Branch: ucs_5.0-0 Scope: errata5.0-1 8a8fdebcd4 Bug #54561: advisory 29fb0ffa20 Bug #54561: Return an empty list instead of None if key doesn't exist in cache
Works as in 4.4-8 VERIFIED
<https://errata.software-univention.de/#/?erratum=5.0x254>