Bug 45283 - AttributeError: 'NoneType' object has no attribute 'unmapName'
AttributeError: 'NoneType' object has no attribute 'unmapName'
Status: CLOSED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-29 14:20 CEST by Florian Best
Modified: 2022-01-27 09:55 CET (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 2: Will only affect a 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.114
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017102721000137, 2017082521000476, 2017082221000785, 2017091921000566, 2017101621000416
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 Florian Best univentionstaff 2017-08-29 14:20:42 CEST
Version: 4.2-1 errata139 (Lesum) - UCS@school 4.2 v2

Remark: bla

Die Ausführung des Kommandos udm/object/policies users/user ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 1132, in _thread
    object_dn, container_dn, obj = _get_object_parts(ioptions)
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 1122, in _get_object_parts
    _obj = _get_object(_object_dn, _module)
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 1101, in _get_object
    _obj = _module.get(_dn)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 82, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 517, in get
    obj = self.module.object(None, ldap_connection, None, ldap_dn, superordinate, attributes=attributes)
  File "%PY2.7%/univention/admin/handlers/users/user.py", line 1449, in __init__
    univention.admin.handlers.simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes=attributes)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 640, in __init__
    oldinfo = univention.admin.mapping.mapDict(self.mapping, self.oldattr)
  File "%PY2.7%/univention/admin/mapping.py", line 350, in mapDict
    k = mapping.unmapName(key)
AttributeError: 'NoneType' object has no attribute 'unmapName'
Comment 1 Florian Best univentionstaff 2017-08-29 14:41:58 CEST
Version: 4.2-1 errata139 (Lesum)
Comment 2 Florian Best univentionstaff 2017-10-12 21:21:18 CEST
Version: 4.2-2 errata164 (Lesum)

Remark: Frisch installiertes Update auf 4.2.2

Die Ausführung des Kommandos udm/syntax/choices users/user ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 926, in _thread
    return read_syntax_choices(syntax, request.options)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 82, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 1226, in read_syntax_choices
    choices.extend(map_choices(module.search(**search_options)))
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 82, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 484, in search
    result = self.module.lookup(None, ldap_connection, filter_s, base=container, superordinate=superordinate, scope=scope, sizelimit=sizelimit)
  File "%PY2.7%/univention/admin/handlers/computers/computer.py", line 161, in lookup
    res.extend(computer.lookup(co, lo, filter_s, base, superordinate, scope, unique, required, timeout, sizelimit))
  File "%PY2.7%/univention/admin/handlers/computers/domaincontroller_master.py", line 687, in lookup
    res.append(object(co, lo, None, dn, attributes=attrs))
  File "%PY2.7%/univention/admin/handlers/computers/domaincontroller_master.py", line 408, in __init__
    univention.admin.handlers.simpleComputer.__init__(self, co, lo, position, dn, superordinate, attributes)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 1165, in __init__
    simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 640, in __init__
    oldinfo = univention.admin.mapping.mapDict(self.mapping, self.oldattr)
  File "%PY2.7%/univention/admin/mapping.py", line 350, in mapDict
    k = mapping.unmapName(key)
AttributeError: 'NoneType' object has no attribute 'unmapName'
Comment 3 Florian Best univentionstaff 2017-10-17 12:39:42 CEST
Reported again, 4.2-1 errata139 (Lesum)
Comment 4 Florian Best univentionstaff 2017-11-10 15:11:22 CET
Reported again, 4.2-2 errata204 (Lesum)
Comment 5 Ingo Steuwer univentionstaff 2020-07-03 20:52:31 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.