Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1999901

Summary: Horizon crashes when changing password if language is set to Japanese
Product: Red Hat OpenStack Reporter: Takashi Kajinami <tkajinam>
Component: python-django-horizonAssignee: Radomir Dopieralski <rdopiera>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Jasek <jjasek>
Severity: high Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: jamsmith, jschluet, nkawamot, rdopiera
Target Milestone: z8Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
This update fixes a unicode escaping bug that caused Horizon to crash when passwords were changed while the Horizon language was set to Japanese. Changing the password no longer causes Horizon to crash.
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-09-18 19:54:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Takashi Kajinami 2021-09-01 01:30:16 UTC
Description of problem:

When language is set to Japanese, changing password always crashes and results in Internal Error.
It seems the password is updated after the crash and there is something wrong when horizon handles response to the client.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Open "User Settings"
 http://<address>/dashboard/settings/

2. Change language to "日本語(ja)" and save

3. Open "Change Password"
 http://<address>/dashboard/settings/password

4. Put current password and new password and click 変更 (Change)

Actual results:
Horizon crashes and "Internal Server Error" is displayed

Expected results:
Password is updated without error

Additional info:

Comment 1 Takashi Kajinami 2021-09-01 01:33:55 UTC
The following error is logged in /var/log/containers/httpd/horizon/horizon_error.log when the issue is reproduced.

[Wed Sep 01 01:29:44.888080 2021] [wsgi:error] [pid 61] [remote 10.0.0.1:39664] mod_wsgi (pid=61): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'.
[Wed Sep 01 01:29:44.888661 2021] [wsgi:error] [pid 61] [remote 10.0.0.1:39664] Traceback (most recent call last):
[Wed Sep 01 01:29:44.888698 2021] [wsgi:error] [pid 61] [remote 10.0.0.1:39664]   File "/usr/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 154, in __call__
[Wed Sep 01 01:29:44.888703 2021] [wsgi:error] [pid 61] [remote 10.0.0.1:39664]     start_response(status, response_headers)
[Wed Sep 01 01:29:44.888718 2021] [wsgi:error] [pid 61] [remote 10.0.0.1:39664] ValueError: unicode object contains non latin-1 characters

Comment 3 Radomir Dopieralski 2021-09-01 13:54:29 UTC
Looks like the problem is with displaying the logout reason, which is not properly encoded.

This problem was previously masked downstream due to bug https://bugzilla.redhat.com/show_bug.cgi?id=1980809 causing the logout reason to not be displayed at all.

Comment 6 Radomir Dopieralski 2021-11-15 13:27:22 UTC
The patch is merged upstream.

Comment 7 Takashi Kajinami 2022-07-25 03:32:42 UTC
Hi Radomir,

I noticed that this bug is targetted to RHOSP16.1 and has POST status but the fix has never been
backported to either stable/train or RHOSP16.1.
Could you check that ?

The issue was reported in RHOSP16.1, and the customer is requesting fix for that version.

Comment 16 Lon Hohberger 2024-09-18 19:54:15 UTC
Red Hat OpenStack Platform 16.1 was retired on April 30, 2024.  This has been resolved in 17.1.