Bug 1233412 - widget generation issues with groups that have no userid set
Summary: widget generation issues with groups that have no userid set
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Insight
Version: 5.3.0
Hardware: All
OS: All
medium
medium
Target Milestone: GA
: 5.4.1
Assignee: Lucy Fu
QA Contact: Nandini Chandra
URL:
Whiteboard:
Depends On: 1227426
Blocks: 1233277
TreeView+ depends on / blocked
 
Reported: 2015-06-18 20:20 UTC by Lucy Fu
Modified: 2019-11-14 06:46 UTC (History)
12 users (show)

Fixed In Version: 5.4.1.0
Doc Type: Bug Fix
Doc Text:
Normally when a user is removed, say from the UI, the associated dashboard is cleared as well. However, during migration from CFME 3.0 to 3.1, some users got deleted and left behind their dashboards in the database. As a result, widgets could not be generated by the admin user that include groups that have no user id set. With this release, code has been updated to skip the user that does not exist any more. This has resolved the issue and widget generation is now successful.
Clone Of: 1227426
Environment:
Last Closed: 2015-07-30 13:10:17 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1511 0 normal SHIPPED_LIVE CFME 5.4.1 bug fixes, and enhancement update 2015-07-30 17:10:05 UTC

Comment 1 CFME Bot 2015-06-22 15:58:39 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=b7809e0cb76e9ef5884cb36738fdce77519d7e6f

commit b7809e0cb76e9ef5884cb36738fdce77519d7e6f
Merge: 579abad d6bd6c9
Author:     Greg McCullough <gmccullo>
AuthorDate: Mon Jun 22 11:30:52 2015 -0400
Commit:     Greg McCullough <gmccullo>
CommitDate: Mon Jun 22 11:30:52 2015 -0400

    Merge branch 'widget_nil_user_1233412_54' into '5.4.z'
    
    Fix MiqWidget#grouped_subscribers
    
    to skip the user that does not exist any more.
    
    A clean cherry pick. The upstream PR is [here](https://github.com/ManageIQ/manageiq/pull/3115).
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1233412
    
    See merge request !135

 vmdb/app/models/miq_widget.rb       | 13 ++++---
 vmdb/spec/models/miq_widget_spec.rb | 72 +++++++++++++++++++++++--------------
 2 files changed, 52 insertions(+), 33 deletions(-)

Comment 3 Nandini Chandra 2015-07-22 12:09:24 UTC
Verified in 5.4.1.0

Comment 5 errata-xmlrpc 2015-07-30 13:10:17 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://rhn.redhat.com/errata/RHBA-2015-1511.html


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