Univention Bugzilla – Bug 50347
S4 Connector reloads extended attributes for every property change it does
Last modified: 2021-11-12 13:35:57 CET
The s4-connector reloads the extended attributes (aka. modules.init() for every changed property): services/univention-s4-connector/modules/univention/s4connector/__init__.py: 1148 » def __set_values(self, property_type, object, ucs_object, modtype='modify'): … 1154 » » def set_values(attributes): … 1164 » » » » » univention.admin.modules.init(self.lo, position, ucs_module) … 1226 » » for attr_key in self.property[property_type].attributes.keys(): … 1232 » » » » if not object.get('changed_attributes') or con_attribute in object.get('changed_attributes') or (con_other_attribute and con_other_attribute in object.get('changed_attributes')): … 1234 » » » » » set_values(self.property[property_type].attributes[attr_key])
Created attachment 10202 [details] patch (git:fbest/50347-wtf-dont-reload-extended-attributes) At least only reload extended attributes once per add/modify! Maybe it can even be reduced less but this is the save change which doesn't break anything we aren't aware of.
Fixed since Python 3 migration: e082efec41f