Bug 52184 - appcenter listener converter triggers modify for all users of a group, when group is renamed
appcenter listener converter triggers modify for all users of a group, when g...
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-10-05 12:03 CEST by Daniel Tröder
Modified: 2020-10-05 12:03 CEST (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?: 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:
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 2020-10-05 12:03:22 CEST
When a group with x users is renamed, x+1 changes are triggered by the appcenter listener trigger: 4 users/user modification and 1 groups/group modification.

Example log of a group ("DEMOSCHOOL-pferd") with 2 users ("sch1" and "sch2"):

--- /var/log/univention/listener.log -------------------------------------------------------------
05.10.20 11:55:57.572  LDAP        ( PROCESS ) : connecting to ldap://m6111.uni.dtr:7389
05.10.20 11:55:57.582  LISTENER    ( PROCESS ) : updating 'uid=sch1,cn=schueler,cn=users,ou=demoschool,dc=uni,dc=dtr' command m
05.10.20 11:55:57.590  LISTENER    ( PROCESS ) : ucsschool-id-connector: modify of uid=sch1,cn=schueler,cn=users,ou=DEMOSCHOOL,dc=uni,dc=dtr (id: 65ef935a-9b3c-103a-967d-293da29c1806, file: /var/lib/univention-appcenter/listener//ucsschool-id-connector/2020-10-05-11-55-57-588464.json)
05.10.20 11:55:57.593  LISTENER    ( PROCESS ) : updating 'uid=sch1,cn=schueler,cn=users,ou=demoschool,dc=uni,dc=dtr' command m
05.10.20 11:55:57.597  LISTENER    ( PROCESS ) : updating 'uid=sch2,cn=schueler,cn=users,ou=demoschool,dc=uni,dc=dtr' command m
05.10.20 11:55:57.601  LISTENER    ( PROCESS ) : ucsschool-id-connector: modify of uid=sch2,cn=schueler,cn=users,ou=DEMOSCHOOL,dc=uni,dc=dtr (id: 8e431084-9b3c-103a-968e-293da29c1806, file: /var/lib/univention-appcenter/listener//ucsschool-id-connector/2020-10-05-11-55-57-600886.json)
05.10.20 11:55:57.604  LISTENER    ( PROCESS ) : updating 'uid=sch2,cn=schueler,cn=users,ou=demoschool,dc=uni,dc=dtr' command m
05.10.20 11:55:57.607  LISTENER    ( PROCESS ) : updating 'cn=DEMOSCHOOL-pferd,cn=klassen,cn=schueler,cn=groups,ou=DEMOSCHOOL,dc=uni,dc=dtr' command r
05.10.20 11:55:57.609  LISTENER    ( PROCESS ) : updating 'cn=DEMOSCHOOL-pferd2,cn=klassen,cn=schueler,cn=groups,ou=DEMOSCHOOL,dc=uni,dc=dtr' command a
05.10.20 11:55:57.626  LISTENER    ( PROCESS ) : ucsschool-id-connector: modify of cn=DEMOSCHOOL-pferd2,cn=klassen,cn=schueler,cn=groups,ou=DEMOSCHOOL,dc=uni,dc=dtr (id: 37e6523c-9b3c-103a-9663-293da29c1806, file: /var/lib/univention-appcenter/listener//ucsschool-id-connector/2020-10-05-11-55-57-625779.json)
05.10.20 11:55:57.630  LISTENER    ( PROCESS ) : updating 'cn=DEMOSCHOOL-pferd2,cn=klassen,cn=schueler,cn=groups,ou=DEMOSCHOOL,dc=uni,dc=dtr' command m
----------------------------------------------------------------------------

--- /var/log/univention/listener_modules/ucsschool-id-connector.log -------
2020-10-05 11:55:57 INFO    modify of uid=sch1,cn=schueler,cn=users,ou=DEMOSCHOOL,dc=uni,dc=dtr (id: 65ef935a-9b3c-103a-967d-293da29c1806, file: /var/lib/univention-appcenter/listener//ucsschool-id-connector/2020-10-05-11-55-57-588464.json)
2020-10-05 11:55:57 INFO    modify of uid=sch2,cn=schueler,cn=users,ou=DEMOSCHOOL,dc=uni,dc=dtr (id: 8e431084-9b3c-103a-968e-293da29c1806, file: /var/lib/univention-appcenter/listener//ucsschool-id-connector/2020-10-05-11-55-57-600886.json)
2020-10-05 11:55:57 INFO    modify of cn=DEMOSCHOOL-pferd2,cn=klassen,cn=schueler,cn=groups,ou=DEMOSCHOOL,dc=uni,dc=dtr (id: 37e6523c-9b3c-103a-9663-293da29c1806, file: /var/lib/univention-appcenter/listener//ucsschool-id-connector/2020-10-05-11-55-57-625779.json)
----------------------------------------------------------------------------

The reason might be the memberOf overlay (?).

The listener should only trigger one change for a group, when it is renamed.