Bug 1702343 - Error when clicking on created Catalog Item in the list
Summary: Error when clicking on created Catalog Item in the list
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.10.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.11.0
Assignee: Hilda Stastna
QA Contact: Niyaz Akhtar Ansari
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks: 1704772
TreeView+ depends on / blocked
 
Reported: 2019-04-23 14:29 UTC by Hilda Stastna
Modified: 2019-12-13 15:08 UTC (History)
8 users (show)

Fixed In Version: 5.11.0.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1704772 (view as bug list)
Environment:
Last Closed: 2019-12-13 15:08:51 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Hilda Stastna 2019-04-23 14:29:31 UTC
Description of problem:
There is a problem in All Service Catalog Items screen: clicking on a newly created Catalog Item in the list throws an error, nothing happens in the UI, Catalog Item's summary screen is not displayed, it is not possible to view the Catalog Item's info.


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

How reproducible:
always

Steps to Reproduce:
1. Go to Services > Catalogs > Catalog Items accordion
2. Configuration > Add a New Catalog Item, choose some Catalog Item type
3. Fill in the required info and click on Add button
4. After successful saving the Catalog Item, click on the same Catalog Item
in the list, in All Service Catalog Items screen to view its details

Actual results:
Clicking on a newly created Catalog Item in the list throws an error, nothing happens in the UI, Catalog Item's summary screen is not displayed.

[----] F, [2019-04-23T15:52:30.005889 #23768:2ac1b3113290] FATAL -- : Error caught: [ActiveRecord::RecordNotFound] Couldn't find ServiceTemplateCatalog with 'id'= /home/hstastna/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.0.7.2/lib/active_record/core.rb:173:in `find' /home/hstastna/manageiq/manageiq-ui-classic/app/controllers/catalog_controller.rb:1897:in `open_parent_nodes' /home/hstastna/manageiq/manageiq-ui-classic/app/controllers/catalog_controller.rb:1947:in `replace_right_cell' /home/hstastna/manageiq/manageiq-ui-classic/app/controllers/application_controller/explorer.rb:177:in `tree_select' /home/hstastna/manageiq/manageiq-ui-classic/app/controllers/catalog_controller.rb:278:in `x_show'

Expected results:
Catalog Item's summary screen is displayed, its Basic Info, and it is possible to edit the item, to delete it etc.

Additional info:
Clicking on the Catalog Item from the accordion in the tree does not throw an error and everything works fine, the summary screen is displayed properly. Only clicking on the Catalog Item from the list is problematic. Another clicks on the same Catalog Item (or some another one, recently created) or refreshing the page don't help.

Comment 2 Hilda Stastna 2019-04-23 14:43:00 UTC
Additional note:
The same problem occurs with Catalog Bundle.

Comment 3 Hilda Stastna 2019-04-23 16:49:36 UTC
fixing https://github.com/ManageIQ/manageiq-ui-classic/pull/5481

Comment 4 CFME Bot 2019-04-25 07:51:21 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/507ee89d84566000aa009dea9180f6948f3b1d0f
commit 507ee89d84566000aa009dea9180f6948f3b1d0f
Author:     Hilda Stastna <hstastna>
AuthorDate: Tue Apr 23 12:21:42 2019 -0400
Commit:     Hilda Stastna <hstastna>
CommitDate: Tue Apr 23 12:21:42 2019 -0400

    Fix error when clicking on created Catalog Item in the list

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

 app/controllers/catalog_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 6 Niyaz Akhtar Ansari 2019-05-07 10:44:07 UTC
Verified in Version 5.11.0.2.20190430174828_0e34dea


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