Bug 54158 - udm/query (dns/dns): AttributeError: 'str' object has no attribute 'decode'
udm/query (dns/dns): AttributeError: 'str' object has no attribute 'decode'
Status: CLOSED DUPLICATE of bug 50648
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
: python3-migration
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-11-26 13:36 CET by Maximilian Janßen
Modified: 2022-01-26 13:23 CET (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: 2021032721000393
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 Maximilian Janßen univentionstaff 2021-11-26 13:36:28 CET
Version: 5.0-0 errata0

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

  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/udm/__init__.py", line 629, in _thread
    'name': module.obj_description(obj),
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 859, in obj_description
    description = udm_objects.description(obj)
  File "%PY3%/univention/admin/objects.py", line 154, in description
    return object.description()
  File "%PY3%/univention/admin/handlers/dns/reverse_zone.py", line 255, in description
    return unmapSubnet(rdn_value)
  File "%PY3%/univention/admin/handlers/dns/reverse_zone.py", line 176, in unmapSubnet
    zone = zone.decode(*encoding)
AttributeError: 'str' object has no attribute 'decode'

Role: domaincontroller_master
Comment 1 Florian Best univentionstaff 2021-12-17 13:04:37 CET
This was reported before the UCS 5.0 release and has been fixed in git:6f56e4b35d29460ad230203c00f09ec2f24a0759.

*** This bug has been marked as a duplicate of bug 50648 ***
Comment 2 Florian Best univentionstaff 2022-01-26 13:23:01 CET
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".