Bug 54696 - traceback when deactivating listener
traceback when deactivating listener
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Listener (univention-directory-listener)
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-1-errata
Assigned To: Daniel Tröder
Florian Best
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-04-27 14:27 CEST by Daniel Tröder
Modified: 2022-05-04 16:58 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very 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.034
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 2022-04-27 14:27:38 CEST
When deactivating a listener module through UCR:

ucr set listener/module/portal_groups/deactivate='yes'

a traceback is logged to the listener log:

----------------------------------------------------------------------------
TypeError: not enough arguments for format string
Call stack:
  File "/usr/lib/python3/dist-packages/univention/listener/api_adapter.py", line 116, in _setdata
    self._module_handler._set_ldap_credentials(
  File "/usr/lib/python3/dist-packages/univention/listener/api_adapter.py", line 129, in _module_handler
    self._module_handler_obj = self.config.get_listener_module_instance()
  File "/usr/lib/python3/dist-packages/univention/listener/handler_configuration.py", line 201, in get_listener_module_instance
    return cls(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/listener/handler.py", line 116, in __init__
    self.config.get_name()
Message: 'Listener module %r deactivated by UCRV "listener/module/%s/deactivate".'
Arguments: ('portal_groups',)
Traceback (most recent call last):
----------------------------------------------------------------------------
Comment 1 Daniel Tröder univentionstaff 2022-04-27 14:31:59 CEST
Fixed in UCS 5.0-1 branch "dtroeder/54696_deactivate_listener_module".
Comment 2 Daniel Tröder univentionstaff 2022-04-28 08:43:33 CEST
Branch was merged, package build and advisory updated:

[5.0-1] 6640708adf Bug #54696: fix TypeError when deactivating listener module
[5.0-1] e7c5023823 Bug #54696: advisory update

univention-directory-listener (14.0.5-7)
Comment 3 Florian Best univentionstaff 2022-04-28 10:24:20 CEST
OK: problem reproduced
OK: problem fixed
OK: YAML