Univention Bugzilla – Bug 53588
TypeError: coercing to Unicode: need string or buffer, NoneType found
Last modified: 2022-04-27 16:02:17 CEST
Version: 4.4-7 errata893 (Blumenthal) Remark: Microsoft 365 connector Error. Error: Internal server error during "office365/query". Request: office365/query Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling six.reraise(etype, exc, etraceback) File "%PY2.7%/univention/management/console/base.py", line 262, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/office365/__init__.py", line 92, in query 'initialized': AzureAuth.is_initialized(self.adconnection_alias), File "%PY2.7%/univention/office365/azure_auth.py", line 376, in is_initialized tokens = cls.load_tokens(adconnection_alias) File "%PY2.7%/univention/office365/azure_auth.py", line 418, in load_tokens return JsonStorage(AzureADConnectionHandler.get_conf_path('TOKEN_FILE', adconnection_alias)).read() File "%PY2.7%/univention/office365/azure_auth.py", line 323, in read with open(self.filename, "r") as fd: TypeError: coercing to Unicode: need string or buffer, NoneType found Role: domaincontroller_master Errno: bd264e9fcf0b24256a3c09459a72eda0
Version: 4.4-8 errata1029 (Blumenthal) - UCS@school 4.4 v9 Remark: Beim Herunterladen des Zertifikats im "Microsoft 365 Einrichtungsassistenten". Musste zuvor eine bereits bestehende Verknüpfung mit MS365 löschen, da man die AD-Connection nicht umbenennen kann. Error: Interner Server-Fehler in "office365/query". Request: office365/query Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling six.reraise(etype, exc, etraceback) File "%PY2.7%/univention/management/console/base.py", line 262, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/office365/__init__.py", line 92, in query 'initialized': AzureAuth.is_initialized(self.adconnection_alias), File "%PY2.7%/univention/office365/azure_auth.py", line 376, in is_initialized tokens = cls.load_tokens(adconnection_alias) File "%PY2.7%/univention/office365/azure_auth.py", line 418, in load_tokens return JsonStorage(AzureADConnectionHandler.get_conf_path('TOKEN_FILE', adconnection_alias)).read() File "%PY2.7%/univention/office365/azure_auth.py", line 323, in read with open(self.filename, "r") as fd: TypeError: coercing to Unicode: need string or buffer, NoneType found Role: domaincontroller_master
reported again: Version: 4.4-7 errata887 (Blumenthal) Remark: Der Fehler tritt sofort nach einer Neuinstallation auf.
A school customer is directly affected. After removing the office365 connector from backup and reinstalling it on master, a new initialisation wasn't possible. A workarround was to set the following ucr variable back to default: ucr set office365/adconnection/wizard=defaultADconnection