Bug 32383 - UDM CLI does not load hook files if new extended attributes are created
UDM CLI does not load hook files if new extended attributes are created
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: UDM - Extended Attributes
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-26 17:48 CEST by Sönke Schwardt-Krummrich
Modified: 2019-02-27 18:05 CET (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Cleanup, Error handling, Troubleshooting, Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2013-08-26 17:48:26 CEST
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
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2013-08-27 08:43:23 CEST
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.
Comment 2 Lukas Walter univentionstaff 2013-08-27 09:57:26 CEST
There should also be a test for this issue.
Comment 3 Stefan Gohmann univentionstaff 2019-01-03 07:23:45 CET
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.