Bug 1775093

Summary: Clicking 'Reset' when editing an embedded Ansible credential displays an incomplete UI page
Product: Red Hat CloudForms Management Engine Reporter: Peter McGowan <pmcgowan>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Sudhir Mallamprabhakara <smallamp>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.11.0CC: bmidwood, dmetzger, hkataria, lavenel, mpovolny, obarenbo
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.12.0Flags: mfeifer: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1784189 (view as bug list) Environment:
Last Closed: 2020-10-26 16:13:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1784189    

Description Peter McGowan 2019-11-21 12:08:12 UTC
Description of problem:
Clicking 'Reset' when editing an embedded Ansible credential displays an incomplete UI page. This page shows a 'Credential Type' label but no value, and the 'Cancel' button doesn't work. The only way to escape from the UI page is to click the Automation -> Ansible -> Credentials breadcrumb.

Version-Release number of selected component (if applicable):
CFME 5.11.0.28
Chrome 78 (Mac)

How reproducible:
every time


Steps to Reproduce:
1. In Automation -> Ansible -> Credentials, create a new credential of type 'Machine'.
2. Give the new credential a name, and username value, and a password, and save this.
3. Now edit the new credential from Configuration -> Edit this credential. Click the 'Reset' button.

Actual results:
The incorrect page details are displayed, and the Cancel button doesn't work.

Expected results:
The correct page details should be displayed, and the Cancel button should work.

Additional info:

Comment 3 Milan Zázrivec 2019-11-28 10:21:31 UTC
I'm unable to reproduce the described problem on my end. Is there parhaps an appliance
or a database showing this problem?

Thanks

Comment 5 Milan Zázrivec 2019-11-29 14:51:40 UTC
Thank you sir, fix: https://github.com/ManageIQ/manageiq-ui-classic/pull/6466

Comment 6 CFME Bot 2019-12-02 15:19:27 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/7e490b5648044bf1290211c3a918e77d829c809c
commit 7e490b5648044bf1290211c3a918e77d829c809c
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Fri Nov 29 09:46:20 2019 -0500
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Fri Nov 29 09:46:20 2019 -0500

    Don't access options when null

    https://bugzilla.redhat.com/show_bug.cgi?id=1775093

 app/assets/javascripts/controllers/ansible_credentials/ansible_credentials_form_controller.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)