Univention Bugzilla – Bug 51716
Office 365 Connector Error with too long phone numbers
Last modified: 2020-09-16 16:12:54 CEST
A customer has determined that a specification of several telephone numbers with a total length of >53 characters leads to a traceback. No limitation is specified in the documentation (https://docs.software-univention.de/handbuch-4.4.html#users::management_13). The plural form is used in the documentation, which means that the usual limit of 15 characters (real max. 20 in the world) can be exceeded. The error in the connector should be caught, or the documentation should be adapted.
Traceback from ticket 2020072221000413 22.07.20 10:36:40.300 LISTENER ( ERROR ) : o365(I): azure_handler.call_api:226 status: 400 (FAIL) Code: Request_BadRequest (PATCH https://graph.windows.net/[uuid]/users/[uuid]?api-version=1.6) 22.07.20 10:36:40.300 LISTENER ( ERROR ) : o365(E): azure_handler.__init__:149 Invalid value specified for property 'telephoneNumber' of resource 'User'. Traceback (most recent call last): File "/usr/lib/univention-directory-listener/system/office365-user.py", line 465, in handler modify_user(ol, dn, new, old) File "/usr/lib/univention-directory-listener/system/office365-user.py", line 317, in modify_user ol.modify_user(old, new) File "/usr/lib/pymodules/python2.7/univention/office365/listener.py", line 313, in modify_user return self.ah.modify_user(object_id=object_id, modifications=attributes) File "/usr/lib/pymodules/python2.7/univention/office365/azure_handler.py", line 372, in modify_user return self._modify_objects(object_type="user", object_id=object_id, modifications=modifications) File "/usr/lib/pymodules/python2.7/univention/office365/azure_handler.py", line 369, in _modify_objects return self.call_api("PATCH", url, modifications) File "/usr/lib/pymodules/python2.7/univention/office365/azure_handler.py", line 240, in call_api raise ApiError(response, adconnection_alias=self.adconnection_alias) univention.office365.azure_handler.ApiError: Invalid value specified for property 'telephoneNumber' of resource 'User'.