Inappropriate UI in Horizon Dashboard
Bug #1821115 reported by
Takashi Kuroda
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Riedo Ilofin |
Bug Description
Release: OSP 15 Stein
1. Create application credential WITHOUT ticking "Unrestricted (dangerous)" checkbox.
"Identity" -> "Application Credentials" -> "+Create Application Credential"
2. Show details of application credential created above.
3. "maybe" is shown in "Unrestricted" field.
NOTE 1: Localised UI corresponds to this "maybe" (at lease Japanese).
NOTE 2: In case of checking "Unrestricted (dangerous)", "yes" is shown.
Changed in horizon: | |
assignee: | nobody → Riedo Ilofin (r9n) |
Changed in horizon: | |
assignee: | Riedo Ilofin (r9n) → Ivan Kolodyazhny (e0ne) |
Changed in horizon: | |
assignee: | Ivan Kolodyazhny (e0ne) → Riedo Ilofin (r9n) |
To post a comment you must log in.
I got the following information by an engineer who looked into the code.
It seems that "None" should be changed to "False". It was tested and verified in devstack.
Please take a look.
Hope this is helpful!
[root@devstack horizon]# git diff dashboard/ dashboards/ identity/ application_ credentials/ forms.py b/openstack_ dashboard/ dashboards/ identity/ application_ credentials/ forms.py dashboard/ dashboards/ identity/ application_ credentials/ forms.py dashboard/ dashboards/ identity/ application_ credentials/ forms.py onCredentialFor m(forms. SelfHandlingFor m):
secret= data['secret' ] or None,
expires_ at=expiration or None,
roles= roles, data['unrestric ted'] or None data['unrestric ted'] or False
self. request. session[ 'application_ credential' ] = \
new_ app_cred. to_dict( )
diff --git a/openstack_
index 5b6286f..447524a 100644
--- a/openstack_
+++ b/openstack_
@@ -94,7 +94,7 @@ class CreateApplicati
- unrestricted=
+ unrestricted=
)