Project

General

Profile

Bug #22491

Wrong search result, when trying to filter for particular compliance policy

Added by Marek Hulán over 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1541109

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

Associated revisions

Revision 8fd58926 (diff)
Added by Ondřej Pražák about 1 year ago

Fixes #22491 - Fix searching for arf reports

History

#1 Updated by Marek Hulán over 1 year ago

  • Priority changed from High to Normal
  • Subject changed from Wrong search result, when trying to filter for particular compliance policy to Wrong search result, when trying to filter for particular compliance policy

reproducible with develop checkout

#2 Updated by The Foreman Bot about 1 year ago

  • Assignee set to Ondřej Pražák
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_openscap/pull/337 added

#3 Updated by Marek Hulán about 1 year ago

  • Legacy Backlogs Release (now unused) set to 364

#4 Updated by Marek Hulán about 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF