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 1180573

Summary: Content dashboard has wrong links to [Invalid|Insufficient|Current] Subscriptions
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: DashboardAssignee: Zach Huntington-Meath <zhunting>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: medium Docs Contact:
Priority: urgent    
Version: 6.0.6CC: aagrawal, bbuckingham, bkearney, jcallaha, kshirsal, mlele, oshtaier, pmoravec, sthirugn, tomckay, zhunting
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
URL: http://projects.theforeman.org/issues/15941
Whiteboard:
Fixed In Version: rubygem-katello-3.0.0.74-1,rubygem-katello-3.0.0.91-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1405524 (view as bug list) Environment:
Last Closed: 2017-01-26 10:47:55 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:
Bug Depends On:    
Bug Blocks: 1115190, 1405524    
Attachments:
Description Flags
failed filter
none
verification screenshot none

Description Pavel Moravec 2015-01-09 13:44:22 UTC
Description of problem:
In katello dashboard, subscription widget provides links to lists of content hosts with [Invalid|Insufficient|Current] Subscriptions. Those links are wrong, as they apply on content host filters "status:red" instead of "status=red". Such filter is ignored on content host and the result shows _all_ content hosts.


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


How reproducible:
100%


Steps to Reproduce:
1. In WebUI, open Content Dashboard (https://satellite.example.com/katello/dashboard#!=)
2. See "Invalid Subscriptions" is 0 in subscription widget.
3. Click to the "Invalid Subscriptions" link


Actual results:
URL https://satellite.example.com/content_hosts?search=status:red is loaded. I.e. content_hosts with applied filter "status:red".

All content hosts are displayed.


Expected results:
Proper URL is loaded under content_hosts, with applied filter "status=red".

No content host is displayed (assuming "Invalid Subscriptions" was really 0).


Additional info:
Can't be search=status%3Dred used? (%3D is encoding of '=') It works for me well as direct URL.

Comment 2 Tom McKay 2015-01-09 15:21:02 UTC
The search syntax for content hosts differs from hosts. For content hosts (and other katello objects) the syntax is elasticsearch, which uses ':' not '='.

This is correct:
status:red

Note that upstream katello is working towards correcting this but content hosts are not one of the resources yet converted.

Comment 3 Pavel Moravec 2015-01-09 17:25:56 UTC
(In reply to Tom McKay from comment #2)
> The search syntax for content hosts differs from hosts. For content hosts
> (and other katello objects) the syntax is elasticsearch, which uses ':' not
> '='.
> 
> This is correct:
> status:red
> 
> Note that upstream katello is working towards correcting this but content
> hosts are not one of the resources yet converted.

You mean that the dasboard is correct and general content_host search incorrect? Is there BZ to make content_host search in form property:value?

Comment 7 Zach Huntington-Meath 2016-08-02 14:15:24 UTC
Created redmine issue http://projects.theforeman.org/issues/15941 from this bug

Comment 8 Bryan Kearney 2016-08-16 14:05:44 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/15941 has been closed

Comment 9 jcallaha 2016-09-02 20:26:58 UTC
Failed QA in Satellite 6.2.2.

The links appear to be correctly formatted, however after landing on the page, the "=valid|invalid|partial" is stripped and no proper filtering is done. See attached image.

url becomes 
https://<sat host>/content_hosts?search=subscription_status

Comment 10 jcallaha 2016-09-02 20:27:27 UTC
Created attachment 1197307 [details]
failed filter

Comment 13 Bryan Kearney 2016-11-11 14:27:34 UTC
*** Bug 1394137 has been marked as a duplicate of this bug. ***

Comment 14 Bryan Kearney 2016-11-11 14:28:34 UTC
*** Bug 1379908 has been marked as a duplicate of this bug. ***

Comment 16 jcallaha 2017-01-10 20:11:14 UTC
Created attachment 1239216 [details]
verification screenshot

Comment 18 errata-xmlrpc 2017-01-26 10:47:55 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/RHBA-2017:0197