Bug 47599 - G-Suite: "Unexpected type <type 'list'> for item ['xxx@xxx.xxx', 'yyy@xxx.xxx'] in property []" after adding an e-mail alias
Summary: G-Suite: "Unexpected type <type 'list'> for item ['xxx@xxx.xxx', 'yyy@xxx.xxx...
Status: RESOLVED WONTFIX
Alias: None
Product: UCS
Classification: Unclassified
Component: Google Apps for Work
Version: UCS 4.4
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: Mail maintainers
QA Contact: Mail maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-16 15:12 CEST by Daniel Tröder
Modified: 2024-06-27 12:09 CEST (History)
2 users (show)

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?: 2: Will only affect a 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.069
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019050921000776
Bug group (optional):
Customer ID:
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 2018-08-16 15:12:36 CEST
+++ This bug was initially created as a clone of Bug #46846 +++

From Bug #46846 #c1:

16.08.18 12:33:42.630  LISTENER    ( PROCESS ) : gafw: Modified google account of user 'a.xxx'.
16.08.18 12:33:42.662  LISTENER    ( PROCESS ) : updating 'uid=a.xxx,cn=users,dc=xxx,dc=xxx' command m
16.08.18 12:36:04.693  LISTENER    ( PROCESS ) : updating 'cn=xxx-nb-009,cn=computers,dc=xxx,dc=xxx' command m
16.08.18 12:36:35.661  LISTENER    ( PROCESS ) : updating 'uid=a.xxx,cn=users,dc=xxx,dc=xxx' command m
Traceback (most recent call last):
  File "/usr/lib/univention-directory-listener/system/google-apps-user.py", line 345, in handler
    ol.modify_google_user(old, new)
  File "/usr/lib/pymodules/python2.7/univention/googleapps/listener.py", line 172, in modify_google_user
    self._fix_user_resource(resource)
  File "/usr/lib/pymodules/python2.7/univention/googleapps/listener.py", line 746, in _fix_user_resource
    resource[k] = _multiply_if_has_list(resource[k])
  File "/usr/lib/pymodules/python2.7/univention/googleapps/listener.py", line 721, in _multiply_if_has_list
    raise RuntimeError("Unexpected type {!r} for item {!r} in property {!r}.".format(type(p), p, prop))
RuntimeError: Unexpected type <type 'str'> for item 'xxx@xxx.xxx' in property [].
16.08.18 12:36:35.679  LISTENER    ( WARN    ) : handler: google-apps-user (failed)
16.08.18 12:36:45.266  LISTENER    ( PROCESS ) : updating 'uid=a.xxx,cn=users,dc=xxx,dc=xxx' command m
Comment 1 Megachip 2018-09-01 14:09:49 CEST
Same with 4.3-1 errata229 and Google Apps for Work Connector 2.3
Comment 2 Megachip 2019-05-09 09:50:20 CEST
4.3-3 errata477 and Google Apps for Work Connector 2.3

09.05.19 09:38:24.492  LISTENER    ( PROCESS ) : updating 'uid=xxx,cn=users,dc=xxx,dc=com' command m
Traceback (most recent call last):
  File "/usr/lib/univention-directory-listener/system/google-apps-user.py", line 345, in handler
    ol.modify_google_user(old, new)
  File "/usr/lib/pymodules/python2.7/univention/googleapps/listener.py", line 172, in modify_google_user
    self._fix_user_resource(resource)
  File "/usr/lib/pymodules/python2.7/univention/googleapps/listener.py", line 746, in _fix_user_resource
    resource[k] = _multiply_if_has_list(resource[k])
  File "/usr/lib/pymodules/python2.7/univention/googleapps/listener.py", line 721, in _multiply_if_has_list
    raise RuntimeError("Unexpected type {!r} for item {!r} in property {!r}.".format(type(p), p, prop))
RuntimeError: Unexpected type <type 'str'> for item '5thfloor@xxx.com' in property [].
09.05.19 09:38:24.513  LISTENER    ( WARN    ) : handler: google-apps-user (failed)
Comment 3 Ingo Steuwer univentionstaff 2019-05-10 15:59:41 CEST
I assume this does not happen for all user objects - do we have any idea which use case triggers this message?
Comment 4 Megachip 2019-05-12 13:09:56 CEST
(In reply to Ingo Steuwer from comment #3)
> I assume this does not happen for all user objects - do we have any idea
> which use case triggers this message?

Adding a alias (e-mail) to an user. Afaik it happens on all users which are synced to google.
Comment 5 Megachip 2019-07-09 13:16:38 CEST
4.4-0 errata168 (Blumenthal) with G Suite connector 2.3

09.07.19 13:11:21.358  LISTENER    ( PROCESS ) : updating 'uid=xxx,cn=users,dc=xxx,dc=com' command m
Traceback (most recent call last):
  File "/usr/lib/univention-directory-listener/system/google-apps-user.py", line 345, in handler
    ol.modify_google_user(old, new)
  File "/usr/lib/pymodules/python2.7/univention/googleapps/listener.py", line 172, in modify_google_user
    self._fix_user_resource(resource)
  File "/usr/lib/pymodules/python2.7/univention/googleapps/listener.py", line 746, in _fix_user_resource
    resource[k] = _multiply_if_has_list(resource[k])
  File "/usr/lib/pymodules/python2.7/univention/googleapps/listener.py", line 721, in _multiply_if_has_list
    raise RuntimeError("Unexpected type {!r} for item {!r} in property {!r}.".format(type(p), p, prop))
RuntimeError: Unexpected type <type 'list'> for item ['xxx@xxx.com', 'xxx@xxx.com'] in property [].
09.07.19 13:11:21.598  LISTENER    ( WARN    ) : handler: google-apps-user (failed)
Comment 6 Jan-Luca Kiok univentionstaff 2024-06-27 12:09:50 CEST
This issue has been filed against UCS 4.4.

UCS 4.4 is out of general maintenance and components may have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.