Bug 1439948

Summary: Error "undefined method `name' for nil:NilClass" when clicked on catalog item after deleting the repository.
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED ERRATA QA Contact: Aziza Karol <akarol>
Severity: medium Docs Contact:
Priority: high    
Version: 5.8.0CC: hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ansible:repo:ui:error
Fixed In Version: 5.8.0.10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1439144 Environment:
Last Closed: 2017-05-31 14:49:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1439144    
Bug Blocks:    

Comment 2 CFME Bot 2017-04-06 23:08:27 UTC
New commit detected on ManageIQ/manageiq-ui-classic/fine:
https://github.com/ManageIQ/manageiq-ui-classic/commit/ed99e3e2f2838ae60a342c5688ba71e95a661101

commit ed99e3e2f2838ae60a342c5688ba71e95a661101
Author:     Dan Clarizio <dclarizi>
AuthorDate: Thu Apr 6 10:28:06 2017 -0700
Commit:     Satoe Imaishi <simaishi>
CommitDate: Thu Apr 6 19:03:08 2017 -0400

    Merge pull request #946 from h-kataria/access_record_attributes_if_record_exists
    
    Made changes to code to only access name if record exists.
    (cherry picked from commit c1d9f9fd0cd8afe4e0c001729a62324f9d56b78d)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1439948

 app/controllers/catalog_controller.rb        | 25 ++++++++++-------
 app/views/catalog/_sandt_tree_show.html.haml | 19 +++++++------
 spec/controllers/catalog_controller_spec.rb  | 42 ++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+), 19 deletions(-)

Comment 3 Aziza Karol 2017-04-21 04:47:37 UTC
No error when clicked on catalog item after deleting the repository.

Verified: 5.8.0.11-beta2.20170418170914_a53d2a7

Comment 5 errata-xmlrpc 2017-05-31 14:49:58 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-2017:1367