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.
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.
(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?
Created redmine issue http://projects.theforeman.org/issues/15941 from this bug
Moving to POST since upstream bug http://projects.theforeman.org/issues/15941 has been closed
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
Created attachment 1197307 [details] failed filter
*** Bug 1394137 has been marked as a duplicate of this bug. ***
*** Bug 1379908 has been marked as a duplicate of this bug. ***
Verified in Satellite 6.2.7 Snap 1 The new links work correctly and are formatted as follows: https://rhsm-qe-1.rhq.lab.eng.bos.redhat.com/content_hosts?search=subscription_status%20%3D%20invalid https://rhsm-qe-1.rhq.lab.eng.bos.redhat.com/content_hosts?search=subscription_status%20%3D%20partial https://rhsm-qe-1.rhq.lab.eng.bos.redhat.com/content_hosts?search=subscription_status%20%3D%20valid See attached screenshot for navigation results.
Created attachment 1239216 [details] verification screenshot
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