Bug 1541109 - Wrong search result, when trying to filter for particular compliance policy
Summary: Wrong search result, when trying to filter for particular compliance policy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Search
Version: 6.3.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: 6.4.0
Assignee: Ondřej Pražák
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-01 17:38 UTC by Suraj Patil
Modified: 2021-12-10 15:37 UTC (History)
7 users (show)

Fixed In Version: foreman_openscap-0.10.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:05:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 22491 0 None None None 2018-02-02 08:03:02 UTC

Description Suraj Patil 2018-02-01 17:38:00 UTC
Description of problem:
Getting wrong search result, when trying to filter for particular compliance_policy in Satellite WebUI > Hosts > Reports

Version-Release number of selected component (if applicable):
Satellite 6.3.0

How reproducible:
Make sure there are more than one arf reports from different compliance policies.

Steps to Reproduce:
1. Go to satellite webui > Hosts > Reports
2. In search filter put " compliance_policy = anything"
3. It results showing all the reports.

Also the API call return all the reports.

Example -

curl -X GET -s -k -u admin:redhat https://vm253-190.gsslab.pnq2.redhat.com/api/v2/compliance/arf_reports?search="compliance_policy=xyz" | python -m json.tool

Actual results:
Returns all the arf reports.

Expected results:
Sorted reports according to the search filter.

Also tested this on satellite 6.2.12 and found the same results

Comment 1 Marek Hulan 2018-02-02 08:02:59 UTC
Created redmine issue http://projects.theforeman.org/issues/22491 from this bug

Comment 2 Marek Hulan 2018-02-02 08:04:18 UTC
reproducible in nightly upstream

Comment 10 Satellite Program 2018-06-12 16:04:55 UTC
Upstream bug assigned to oprazak

Comment 11 Satellite Program 2018-06-12 16:04:59 UTC
Upstream bug assigned to oprazak

Comment 13 Satellite Program 2018-06-15 14:05:08 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/22491 has been resolved.

Comment 14 Peter Ondrejka 2018-07-23 14:57:01 UTC
Verified on Satellite 6.4 snap 13, compliance reports search works as expected in the UI

Comment 15 Bryan Kearney 2018-10-16 19:05:54 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:2927


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