Bug 56393 - /univention/command/udm/get (computers/computer): univention.admin.uexceptions.wrongObjectType
/univention/command/udm/get (computers/computer): univention.admin.uexception...
Status: CLOSED DUPLICATE of bug 54839
Product: UCS
Classification: Unclassified
Component: UMC - Computers
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-08-02 13:35 CEST by Mika Westphal
Modified: 2023-08-02 13:58 CEST (History)
1 user (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: 2023071021000332
Bug group (optional): Error handling, 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 Mika Westphal univentionstaff 2023-08-02 13:35:54 CEST
Interner Server-Fehler in "/univention/command/udm/get (computers/computer)".
Request: /univention/command/udm/get (computers/computer)

Traceback (most recent call last):
  File "%PY3%/notifier/threads.py", line 72, in _run
    result = self._function()  # type: Union[BaseException, _T]
  File "%PY3%/notifier/__init__.py", line 188, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 494, in get
    return self._get(request)
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 511, in _get
    obj, module = self.get_obj_module(request.flavor, ldap_dn)
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 226, in get_obj_module
    return get_obj_module(flavor, ldap_dn, self.get_ldap_connection()[0])
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 1209, in get_obj_module
    return module.get(ldap_dn, attributes=attr), module
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 721, in get
    UDM_Error(exc).reraise()
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 364, in reraise
    six.reraise(self.__class__, self, self.exc_info[2])
  File "%PY3%/six.py", line 692, in reraise
    raise value.with_traceback(tb)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 710, in get
    obj = self.module.object(None, ldap_connection, None, ldap_dn, superordinate, attributes=attributes)
  File "%PY3%/univention/admin/handlers/computers/__base.py", line 70, in __init__
    univention.admin.handlers.simpleComputer.__init__(self, co, lo, position, dn, superordinate, attributes)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1916, in __init__
    simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes)
  File "%PY3%/univention/admin/handlers/__init__.py", line 230, in __init__
    raise univention.admin.uexceptions.wrongObjectType('%s is not recognized as %s.' % (self.dn, self.module))
univention.management.console.modules.udm.udm_ldap.UDM_Error: Der Objekttyp dieses Objekts unterscheided sich von dem angegebenen Objekttyp: cn=***,cn=***,cn=computers,dc=***,dc=local is not recognized as computers/windows.
Comment 1 Mika Westphal univentionstaff 2023-08-02 13:54:15 CEST

*** This bug has been marked as a duplicate of bug 54839 ***
Comment 2 Florian Best univentionstaff 2023-08-02 13:58:25 CEST
OK: duplicate