Bug 1500199 - Custom button with dialog in Cloud Tenant crashes
Summary: Custom button with dialog in Cloud Tenant crashes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.9.0
Assignee: Zita Nemeckova
QA Contact: Yadnyawalk Tale
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-10 07:51 UTC by Raul Sevilla
Modified: 2018-03-01 13:19 UTC (History)
6 users (show)

Fixed In Version: 5.9.0.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-01 13:19:29 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
UI error (57.78 KB, image/png)
2017-10-10 07:51 UTC, Raul Sevilla
no flags Details
filter_accordion_issue.gif (1.27 MB, image/gif)
2018-02-06 17:02 UTC, Yadnyawalk Tale
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0380 0 normal SHIPPED_LIVE Moderate: Red Hat CloudForms security, bug fix, and enhancement update 2018-03-01 18:37:12 UTC

Description Raul Sevilla 2017-10-10 07:51:52 UTC
Created attachment 1336676 [details]
UI error

Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Create a dummy dialog to assign to the custom button
2. Create a Cloud Tenant custom button with the previous dialog
3. Go to Compute -> Clouds -> Tenants and click in one of the available tenants
4. Click previously created custom button

Actual results:
UI shows an error message like the below (Also attached a picture)



Unexpected error encountered

Errors in Management Engine can be caused by:

① Accessing Management Engine from multiple tabs or windows of the same browser on a single machine. Close any duplicate browser sessions, then select an option from the menu.
② Pressing the back button during a session. 
      Close any duplicate browser sessions, then select an option from the menu.
③ An internal system error. 
      Please contact your administrator for assistance.


Error text:

No route matches {:action=>"dialog_load", :controller=>"cloud_tenant", :id=>"1000000000012"} [cloud_tenant/button]



Expected results:
The service dialog is properly loaded



Additional info:

Comment 4 Yadnyawalk Tale 2018-02-06 17:02:39 UTC
Created attachment 1392202 [details]
filter_accordion_issue.gif

@Zita, Custom button and group working correctly with cloud tenant including enablement and visibility expressions, but I noticed small issue while submitting/canceling dialog.

To reproduce this scnerio, you have to add custom search filter on Cloud Tenants page (/cloud_tenant/show_list)

Steps:
1. Add dialog to custom button (use steps written in comment #0)
1. Add custom filter from advance search (you will get your filter in left accordion)
2. Click any of the tenant from the table and submit dialog via custom button

After submitting/cacenling dialog, you will find tenant table has been expanded on Cloud Tenants page (/cloud_tenant/show_list) and there is no search-bar or custom filter accordion (which was earlier before submitting dialog request). 

Now if you goto Compute > Cloud > Tenant then also you won't get earlier Cloud Tenants page view (with searchbar and accordion); This is noticed that to get that view you have to close your session (logout) and login again. 

This also need to fixed with this. Thanks!

Comment 5 Zita Nemeckova 2018-02-07 08:24:04 UTC
Hi,

I think that issue you describe should be a new BZ. Original one is about a crash and this is about wrong page displayed and advance search. What do you think?

Comment 6 Yadnyawalk Tale 2018-02-07 10:50:19 UTC
Agreed @Zita! Raised separate BZ1542907 for issue mentioned in comment #4, verifying this issue as discussed. 

Fixed! I can submit dialog from custom button of cloud tenant and crashing issue has been patched. 
Verified on: 5.9.0.19.20180130154138_e545381 

Thanks @Zita!

Comment 9 errata-xmlrpc 2018-03-01 13:19:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0380


Note You need to log in before you can comment on or make changes to this bug.