Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1180573 - Content dashboard has wrong links to [Invalid|Insufficient|Current] Subscriptions
Content dashboard has wrong links to [Invalid|Insufficient|Current] Subscript...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Dashboard (Show other bugs)
6.0.6
All Linux
urgent Severity medium (vote)
: 6.2.7
: Unused
Assigned To: Zach Huntington-Meath
jcallaha
http://projects.theforeman.org/issues...
: Triaged
: 1379908 1394137 (view as bug list)
Depends On:
Blocks: GSS_Sat6Beta_Tracker/GSS_Sat6_Tracker 1405524
  Show dependency treegraph
 
Reported: 2015-01-09 08:44 EST by Pavel Moravec
Modified: 2017-04-12 17:50 EDT (History)
11 users (show)

See Also:
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 05:47:55 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
failed filter (66.13 KB, image/png)
2016-09-02 16:27 EDT, jcallaha
no flags Details
verification screenshot (207.43 KB, image/png)
2017-01-10 15:11 EST, jcallaha
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1400223 None None None Never
Foreman Issue Tracker 15941 None None None 2016-08-02 11:04 EDT
Foreman Issue Tracker 17227 None None None 2016-12-07 17:06 EST
Red Hat Product Errata RHBA-2017:0197 normal SHIPPED_LIVE Satellite 6.2.7 Async Bug Release 2017-01-26 10:38:38 EST

  None (edit)
Description Pavel Moravec 2015-01-09 08:44:22 EST
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 10:21:02 EST
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 12:25:56 EST
(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 10:15:24 EDT
Created redmine issue http://projects.theforeman.org/issues/15941 from this bug
Comment 8 Bryan Kearney 2016-08-16 10:05:44 EDT
Moving to POST since upstream bug http://projects.theforeman.org/issues/15941 has been closed
Comment 9 jcallaha 2016-09-02 16:26:58 EDT
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 16:27 EDT
Created attachment 1197307 [details]
failed filter
Comment 13 Bryan Kearney 2016-11-11 09:27:34 EST
*** Bug 1394137 has been marked as a duplicate of this bug. ***
Comment 14 Bryan Kearney 2016-11-11 09:28:34 EST
*** Bug 1379908 has been marked as a duplicate of this bug. ***
Comment 16 jcallaha 2017-01-10 15:11 EST
Created attachment 1239216 [details]
verification screenshot
Comment 18 errata-xmlrpc 2017-01-26 05:47:55 EST
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

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