Univention Bugzilla – Bug 32383
UDM CLI does not load hook files if new extended attributes are created
Last modified: 2019-02-27 18:05:42 CET
The UDM CLI loads the extended attribute hook files only during startup. If extended attributes are created later, the UDM CLI reevaluates all extended attributes, but the hook files aren't reloaded. This leads to a broken behaviour. New extended attributes are shown and seems to be valid, but the special hook functions are inoperational. If changes to extended attributes are done in conjunction with hooks, a restart of the CLI server is required: . /usr/share/univention-lib/base.sh stop_udm_cli_server
Possible fix: add "univention.admin.hook.import_hook_files()" at the beginning of update_extended_attributes() within univention/admin/modules.py. It should be considered if univention.admin.syntax.import_syntax_files() should be added too.
There should also be a test for this issue.
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.