Bug 48493 - office365 user listener creates tracebacks when resyncing
office365 user listener creates tracebacks when resyncing
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Office 365
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-3-errata
Assigned To: Daniel Tröder
Erik Damrose
:
Depends on:
Blocks: 49221
  Show dependency treegraph
 
Reported: 2019-01-18 11:27 CET by Daniel Tröder
Modified: 2020-02-13 09:50 CET (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
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.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
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 Daniel Tröder univentionstaff 2019-01-18 11:27:30 CET
Whenresyncing the user listener, for every user that is _not_ activated for office365 a traceback occurs:

------------------------------------------------------------------
18.01.19 11:06:56.232  LISTENER    ( PROCESS ) : o365: new and not new_enabled -> DEACTIVATE (uid=demo_student,cn=schueler,cn=users,ou=DEMOSCHOOL,dc=schulen-univention,dc=intranet)
Traceback (most recent call last):
  File "/usr/lib/univention-directory-listener/system/office365-user.py", line 335, in handler
    deactivate_user(ol, dn, new, old)
  File "/usr/lib/univention-directory-listener/system/office365-user.py", line 262, in deactivate_user
    ol.deactivate_user(old)
  File "/usr/lib/pymodules/python2.7/univention/office365/listener.py", line 172, in deactivate_user
    object_id = self.find_aad_user_by_entryUUID(old["entryUUID"][0])
KeyError: 'entryUUID'
18.01.19 11:06:56.232  LISTENER    ( WARN    ) : handler: office365-user (failed)
------------------------------------------------------------------

The reason is, that the listener assumes it must be a modify or delete opration and expects to find the entryUUID und the "old" dictionary. In the case of a resync all operations are "new" with an empty "old".
Comment 1 Daniel Tröder univentionstaff 2019-01-18 11:28:52 CET
[4.3 d5495c3] Bug #48493: fix traceback in case of resync
Comment 2 Erik Damrose univentionstaff 2019-04-02 13:41:46 CEST
Verified
Comment 3 Erik Damrose univentionstaff 2020-02-13 09:50:30 CET
Closed: Released with App Version 3.0 for UCS 4.4