Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1493494

Summary: [RFE] While adding a content-view to a composite view which is not published, clicking "Add Content Views" button does nothing, it should give an error.
Product: Red Hat Satellite Reporter: vivpatil
Component: Content ViewsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Ales Dujicek <adujicek>
Severity: low Docs Contact:
Priority: low    
Version: 6.2.11CC: adujicek, bbuckingham, bkearney, michael.hammer
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 12:39:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description vivpatil 2017-09-20 10:58:20 UTC
Description of problem:

When trying to add a new content-view that is not yet published to the composite view, clicking on the "Add Content Views" button does not do anything. This seems expected since the child content view should contain atleast one published version which should be selected while adding it to the composite content view. But some users requests there should be an error message displayed something similar to "Publish the Content View and ensure a version is selected while adding to the composite view" which will be helpful.

Version-Release number of selected component (if applicable):
Red Hat Satellite 6.2.11

How reproducible:
Every time

Steps to Reproduce:
1. Create a new empty content view , do not publish
2. Try adding this content view to the composite view

Actual results:
The "Add Content Views" button does not give an error message.

Expected results:
The "Add Content Views" button should give an error message.

Comment 3 Brad Buckingham 2017-09-20 19:34:30 UTC
Note: With the behavior observed in 6.2, while there is no error to the user, the browswer console does show the following:

bastion-07af021….js:2 TypeError: Cannot read property 'id' of undefined
    at bastion_katello-376bfe5….js:3
    at Array.forEach (<anonymous>)
    at Object.i [as forEach] (bastion-07af021….js:1)
    at c.e.addContentViews (bastion_katello-376bfe5….js:3)
    at bastion-07af021….js:4
    at bastion-07af021….js:4
    at c.$eval (bastion-07af021….js:3)
    at c.$apply (bastion-07af021….js:3)
    at HTMLButtonElement.<anonymous> (bastion-07af021….js:4)
    at HTMLButtonElement.dispatch (application-b90592c….js:26)

This issue has been resolved in Satellite 6.3 with the introduction of a feature that will allow selection of 'Latest' when associating component content views with a composite.  Based on this, I am going to move this bugzilla forward to QE for verification in 6.3 internal builds.

Comment 7 errata-xmlrpc 2018-02-21 12:39:59 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:0336