Bug #18741

Show log messages "failed only" incorrect produces messages with "pass" result

Added by Ondřej Pražák 7 months ago. Updated 19 days ago.

Status:ClosedSpent time:-
Priority:Normal
Assigned To:Ondřej Pražák
Category:-
Target version:Foreman - Team Marek Iteration 19
Difficulty: Bugzilla link:1418859
Found in release: Pull request:https://github.com/theforeman/foreman_openscap/pull/270
Triaged:No
Story points-
Velocity based estimate-
Releaseforeman_openscap 0.8.1Release relationshipAuto

Description

Description of problem:

An SCAP compliance report shows zero failed events for a particular host. When viewing that host only and filtering in the "Show log messages:" drop down box for "Failed only", two results are shown both with a "pass" in the Result column.

How reproducible:

Use the "Failed only" events filter for a specific host with zero failed events.

Steps to Reproduce:
1. Run an SCAP compliance report and select a host with zero failed events.
2. Examine this host specifically and filter for "Failed only" events.

Actual results:

Events with "pass" result are shown.

Expected results:

No events should be shown.

Additional info:

I failed to reproduce for 'Failed only' but 'Failed and Othered' showed me all passed and othered rules.

rules-filter.png (142 KB) Preview Ondřej Pražák, 06/21/2017 02:39 AM

Rules-filter

Related issues

Related to Foreman - Bug #20529: filter_by_level broken when there are multiple columns wi... Closed 08/08/2017

Associated revisions

Revision ae2e8a12
Added by Ondřej Pražák 28 days ago

Fixes #18741 - Fix filtering of report messages

Revision 0cb94192
Added by Marek Hulán 26 days ago

Merge pull request #270 from xprazak2/log-filter

Fixes #18741 - Fix filtering of report messages

History

#1 Updated by Ondřej Pražák 7 months ago

  • Subject changed from Show log messages "failed only" incorrect produces messages with "pass" result to Show log messages "failed only" incorrect produces messages with "pass" result
  • Target version set to Team Marek backlog

#2 Updated by Marek Hulán 3 months ago

It seems to work for me with latest upstream version. Do we have a reproducer?

#3 Updated by Ondřej Pražák 3 months ago

Marek Hulán wrote:

It seems to work for me with latest upstream version. Do we have a reproducer?

Yes, we do.

#4 Updated by The Foreman Bot 3 months ago

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

#5 Updated by Marek Hulán 2 months ago

  • Target version changed from Team Marek backlog to Team Marek Iteration 18

#6 Updated by Marek Hulán about 1 month ago

  • Target version changed from Team Marek Iteration 18 to Team Marek Iteration 19

#7 Updated by Ondřej Pražák about 1 month ago

  • Related to Bug #20529: filter_by_level broken when there are multiple columns with labels added

#8 Updated by Marek Hulán 26 days ago

  • Release set to foreman_openscap 0.7.5

#9 Updated by Ondřej Pražák 26 days ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#10 Updated by Marek Hulán 19 days ago

  • Release changed from foreman_openscap 0.7.5 to foreman_openscap 0.8.1

Also available in: Atom PDF