Bug 57332 - udm/query (dhcp/dhcp): AttributeError: 'list' object has no attribute 'encode'
udm/query (dhcp/dhcp): AttributeError: 'list' object has no attribute 'encode'
Status: RESOLVED DUPLICATE of bug 55604
Product: UCS
Classification: Unclassified
Component: UMC - DHCP
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2024-05-24 10:30 CEST by Mika Westphal
Modified: 2024-05-24 11:33 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: 2024012621000115
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 2024-05-24 10:30:19 CEST
Version: 5.0-6 errata928

Remark: Ich habe versucht, eine MAC-Adresse zu finden.
Ich habe die Filter Typ : "DHCP: Rechner" und Eigenschaft "Hardware-Adresse" gesetzt und nach der Hardware-Adresse "40*" (die MAC-Adresse ist 40:A2:) gesucht

Error:
Interner Server-Fehler in "udm/query (dhcp/dhcp)".
Request: udm/query (dhcp/dhcp)

Traceback (most recent call last):
  File "%PY3%/univention/management/console/modules/decorators.py", line 259, in _run
    result = self._function(*args, **kwargs)  # type: Union[BaseException, _T]
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 601, in query
    result = module.search(container, objectProperty, objectPropertyValue, superordinate, scope=scope, hidden=hidden, allow_asterisks=USE_ASTERISKS)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 681, in search
    result = self.module.lookup(None, ldap_connection, filter_s, base=container, superordinate=superordinate, scope=scope, sizelimit=sizelimit, **kwargs)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1800, in lookup
    filter_s = cls.lookup_filter(filter_s, lo)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1831, in lookup_filter
    filter_p.append_unmapped_filter_string(filter_s, cls.rewrite_filter, module.mapping)
  File "%PY3%/univention/admin/filter.py", line 124, in append_unmapped_filter_string
    walk(filter_p, rewrite_function, arg=mapping)
  File "%PY3%/univention/admin/filter.py", line 316, in walk
    walk(e, expression_walk_function, conjunction_walk_function, arg)
  File "%PY3%/univention/admin/filter.py", line 321, in walk
    expression_walk_function(filter_p, arg)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1904, in rewrite_filter
    filter.value = mapping.mapValueDecoded(key, filter.value, encoding_errors='ignore')
  File "%PY3%/univention/admin/mapping.py", line 556, in mapValueDecoded
    value = self.mapValue(map_name, value, encoding_errors=errors)
  File "%PY3%/univention/admin/mapping.py", line 548, in mapValue
    value = map_value(value, **kwargs)
  File "%PY3%/univention/admin/handlers/dhcp/host.py", line 113, in mapHWAddress
    return old.encode(*encoding)
AttributeError: 'list' object has no attribute 'encode'

Role: domaincontroller_master
Comment 1 Marius Meschter univentionstaff 2024-05-24 11:33:28 CEST
This has been fixed in https://errata.software-univention.de/#/?erratum=5.0x1038

*** This bug has been marked as a duplicate of bug 55604 ***