Bug 51716 - Office 365 Connector Error with too long phone numbers
Office 365 Connector Error with too long phone numbers
Status: NEW
Product: UCS
Classification: Unclassified
Component: Office 365
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Mail maintainers
Mail maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-07-22 15:58 CEST by Dirk Schnick
Modified: 2020-09-16 16:12 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.046
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020072221000413
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schnick univentionstaff 2020-07-22 15:58:05 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.
Comment 1 Erik Damrose univentionstaff 2020-07-27 14:24:31 CEST
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'.