Bug 57566 - Euro symbol in the password results in UMC modules failing to open
Summary: Euro symbol in the password results in UMC modules failing to open
Status: NEW
Alias: None
Product: UCS@school
Classification: Unclassified
Component: UMC
Version: UCS@school 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UCS@school maintainers
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-05 11:40 CEST by Finn David
Modified: 2024-09-05 13:11 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.046
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2024090421000222
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Finn David univentionstaff 2024-09-05 11:40:38 CEST
When changing the password to one containing the Euro-symbol € in UCS@school, then the UMC modules fail to open up:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/tornado/web.py", line 1595, in _execute
    result = yield result
  File "/usr/lib/python3/dist-packages/tornado/gen.py", line 1133, in run
    value = future.result()
  File "/usr/lib/python3/dist-packages/univention/management/console/resources.py", line 734, in get
    headers = self.get_request_header(session, methodname, umcp_command)
  File "/usr/lib/python3/dist-packages/univention/management/console/resources.py", line 794, in get_request_header
    headers['Authorization'] = 'basic ' + base64.b64encode(('%s:%s' % (session.user.username, session.get_umc_password())).encode('ISO8859-1')).decode('ASCII')
UnicodeEncodeError: 'latin-1' codec can't encode character '\u20ac' in position 19: ordinal not in range(256)

Regular UMC modules are affected as well as school specific modules.