Bug 56273 - quota/users/remove: TypeError: 'str' object is not callable
quota/users/remove: TypeError: 'str' object is not callable
Status: NEW
Product: UCS
Classification: Unclassified
Component: Quota
UCS 5.0
Other Windows NT
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on: 51317
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-06 15:34 CEST by Maximilian Janßen
Modified: 2023-07-07 09:40 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 3: Will affect average number of 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.137
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023041721000111
Bug group (optional): bitesize, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maximilian Janßen univentionstaff 2023-07-06 15:34:40 CEST
Version: 5.0-3 errata618

Error:
Internal server error during "quota/users/remove".
Request: quota/users/remove

Traceback (most recent call last):
  File "%PY3%/notifier/threads.py", line 80, in _run
    result = self._function()
  File "%PY3%/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY3%/univention/management/console/modules/quota/user.py", line 145, in _thread
    raise UMC_Error(_('Could not remove the following user: %s') % ', '.join(failed))
TypeError: 'str' object is not callable

Role: domaincontroller_master


failed is a str-array
_ = Translation('univention-management-console-module-quota').translate
Comment 1 Philipp Hahn univentionstaff 2023-07-06 18:57:44 CEST
   50 _ = Translation('univention-management-console-module-quota').translate
      ^
  129             (user, _, partition) = obj['object'].partition('@')
                         ^
  136             raise UMC_Error(_('Could not remove the following user: %s') % ', '.join(failed))
                                  ^

Regression from git:62b3e28594d Bug #51317:
 30 -»··»···»···»···(user, partition) = obj['object'].partition('@')
 31 +»··»···»···»···(user, _, partition) = obj['object'].partition('@')

base/univention-quota/umc/python/quota/user.py