Bug 51249 - KeyError: u'openprojectActivated'
KeyError: u'openprojectActivated'
Status: NEW
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on: 51283
Blocks:
  Show dependency treegraph
 
Reported: 2020-05-08 10:55 CEST by Florian Best
Modified: 2023-11-09 16:06 CET (History)
3 users (show)

See Also:
What kind of report is it?: ---
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: 2020050821000293, 2020050821000408, 2020050821000301, 2020050821000293, 2020020721000121, 2020021521000178, 2023110921000354
Bug group (optional): 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 Florian Best univentionstaff 2020-05-08 10:55:22 CEST
Version: 4.4-4 errata499 (Blumenthal)

Internal server error during "udm/get (users/user)".
Request: udm/get (users/user)

  File "/usr/lib/python2.7/dist-packages/notifier/threads.py", line 80, in _run
    result = self._function()
  File "/usr/lib/python2.7/dist-packages/notifier/__init__.py", line 104, in __call__
    return self._function(*tmp, **self._kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/udm/__init__.py", line 541, in _get
    for opt in module.get_options(udm_object=obj):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 1033, in get_options
    obj_options.extend(AppAttributes.options_for_obj(obj))
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 176, in options_for_obj
    if obj[option_def['attribute_name']] == option_def['boolean_values'][0]:
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 479, in __getitem__
    elif key not in self.__no_default and self.descriptions[key].editable:
KeyError: u'openprojectActivated'

→ A problem caused by the "fake" app tabs.
Comment 1 Christian Castens univentionstaff 2020-08-26 16:58:51 CEST
reported again:

Version: 4.4-4 errata589 (Blumenthal)

Internal server error during "udm/get (users/user)".
Request: udm/get (users/user)

Role: domaincontroller_master
Comment 2 Christian Castens univentionstaff 2020-08-27 09:04:19 CEST
reported again:
Version: 4.4-3 errata438 (Blumenthal)
Role: domaincontroller_master
Comment 3 Marley 2023-11-09 15:38:36 CET
User management is broken. When i try to edit a user there comes a error:

Version 5.0-5 errata875

Interner Server-Fehler in "udm/get (users/user)".
Request: udm/get (users/user)

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 259, in _run
    result = self._function(*args, **kwargs)  # type: Union[BaseException, _T]
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/__init__.py", line 495, in get
    return self._get(request)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/__init__.py", line 537, in _get
    for opt in module.get_options(udm_object=obj):
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 1009, in get_options
    obj_options.extend(AppAttributes.options_for_obj(obj))
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 179, in options_for_obj
    if obj[option_def['attribute_name']] == option_def['boolean_values'][0]:
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 479, in __getitem__
    elif key not in self.__no_default and self.descriptions[key].editable:
KeyError: 'openprojectActivated'

But openproject is not installed at all. It used to be installed, but was removed some time ago.
Comment 4 Florian Best univentionstaff 2023-11-09 16:04:26 CET
Reported again, Version: 5.0-5 errata875

Remark: User management is broken.
When i try to edit a user there comes a error.

Version 5.0-5 errata875

KeyError: 'openprojectActivated'

But openproject is not installed at all. It used to be installed, but was removed some time ago.
Comment 5 Florian Best univentionstaff 2023-11-09 16:06:54 CET
(In reply to Marley from comment #3)
> But openproject is not installed at all. It used to be installed, but was
> removed some time ago.

Can you try to remove it via the following command executed as root:
udm settings/extended_attribute remove --filter cn=openprojectActivated

After this, relogin into UMC/Portal and try to modify a user again.