Bug 55043 - proof unique member fails with "'str' object has no attribute 'decode'"
proof unique member fails with "'str' object has no attribute 'decode'"
Status: RESOLVED DUPLICATE of bug 54988
Product: UCS@school
Classification: Unclassified
Component: UMC - System diagnostic
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-07-29 14:44 CEST by Lukas Zumvorde
Modified: 2022-07-31 14:46 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:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Zumvorde univentionstaff 2022-07-29 14:44:40 CEST
After the upgrade to UCS 5 in a UCS@School environment we started the systems diagnostic in the UMC. There the following traceback was given:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/diagnostic/__init__.py", line 280, in execute
    result = execute(umc_module, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/diagnostic/plugins/63_proof_uniqueMembers.py", line 56, in run_proof_uniqueMembers_fix
    fix_log.append(output.decode('utf-8', 'replace'))
AttributeError: 'str' object has no attribute 'decode' 

The issue is that the 'output' sting is indeed of type string instead of the expected byte string.
Comment 1 Florian Best univentionstaff 2022-07-31 14:46:09 CEST

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