Bug 1702101 - OpenScap Compliance policy page do not obey paging
Summary: OpenScap Compliance policy page do not obey paging
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: SCAP Plugin
Version: 6.4.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.6.0
Assignee: Ondřej Pražák
QA Contact: Jameer Pathan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-22 23:37 UTC by Jaskaran Singh Narula
Modified: 2020-10-07 09:17 UTC (History)
6 users (show)

Fixed In Version: tfm-rubygem-foreman_openscap-1.0.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-22 19:51:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 26667 0 Normal Closed No pagination on Compliance Policy Dashboard page 2020-12-09 11:43:18 UTC
Foreman Issue Tracker 27331 0 Normal Closed Pagination on policy dashboard page does not work properly 2020-12-09 11:43:45 UTC

Description Jaskaran Singh Narula 2019-04-22 23:37:23 UTC
Description of problem:
When we navigate on the page Host >> Policy >> Click on any name of the policy >> compliance policy page do not show other reports if default paging size is changed. 

Fore Example: 

If paging is set to 3 reports per page and on the compliance policy page we have 4 reports, then the page will be loaded with 3 reports and it do not show any option to see the 4th report.


It seems that page is not obeying default paging size and tries to load all the reports at the same time, which can create issues in large deployments.  



Version-Release number of selected component (if applicable):
rubygem-smart_proxy_openscap-0.6.11-1.el7sat.noarch
puppet-foreman_scap_client-0.3.16-3.el7sat.noarch
openscap-scanner-1.2.17-2.el7.x86_64
openscap-1.2.17-2.el7.x86_64
tfm-rubygem-foreman_openscap-0.10.3-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_openscap-0.1.6-1.el7sat.noarch
rubygem-openscap-0.4.7-3.el7sat.noarch


How reproducible:
Fully reproducible 

Steps to Reproduce:
1. Configure 4 systems with same scap policy. 
2.  Scan the system at least once. 
3. Change the default paging size in Satelite setting page. 
4. Navigate to the page mentioned below: 
     Host >> Policy >> Click on any name of the policy >> compliance policy page >> 

Actual results:
Page shows only 3 reports from the same policy and no other option to load other reports.  

Expected results:
Page should show other pages to load other reports as well. 

Additional info:

Comment 3 Ondřej Pražák 2019-04-24 06:33:13 UTC
Created redmine issue http://projects.theforeman.org/issues/26667 from this bug

Comment 4 Bryan Kearney 2019-04-24 10:06:35 UTC
Upstream bug assigned to oprazak

Comment 5 Bryan Kearney 2019-04-24 10:06:37 UTC
Upstream bug assigned to oprazak

Comment 7 Suraj Patil 2019-05-30 18:30:51 UTC
Hello,

Is there any update regarding this bug? In which version of satellite fix will be released? 
I can see the bug status is set to MODIFIED, Can we get the Target Milestone set?

Comment 8 Jameer Pathan 2019-07-16 11:24:01 UTC
Hi Ondrej,
I was testing this bugzilla and I have found couple of changes 
compared to satellite 6.5.
1. we have added 'Dashboard' button to go to policy dashboard page
(Hosts > Policies > Dashboard)
2. Edit option has been removed. Now clicking on policy name would take 
you to edit page of that policy.
- Ondrej can you confirm if above changes are valid.
- Also pagination is still not working on policy dashboard.

tested with
- Satellite 6.6.0 snap 11
- tfm-rubygem-foreman_openscap-1.0.4-1.el7sat.noarch

Test steps:
1. Configure 5 systems with same scap policy. 
2. Scan the system at least once. 
3. Change the default paging size in Satelite setting page.(set to 3)
4. Navigate to the page mentioned below: 
     Host >> Policy >> Click on Dashboard button of policy.
5. It'll take you to policy dashboard page.

Observation:
- Page shows all latest reports for policy associated with hosts.
- The default paging size is not being obeyed.
- Added 'Dashboard' button to go to policy dashboard page.
(Hosts > Policies > Dashboard)

Comment 11 Ondřej Pražák 2019-07-17 10:37:45 UTC
Changing 'Edit' and 'Dashboard' actions was intentional to make it consistent with the rest of the application. I can confirm that even though the pagination is present on the policy dashboard page, it does not work as expected.

Comment 12 Jameer Pathan 2019-07-17 11:20:59 UTC
As per comment #8 and comment #11 marking this bug as FailedQA.

Comment 13 Ondřej Pražák 2019-07-18 07:54:39 UTC
Connecting redmine issue https://projects.theforeman.org/issues/27331 from this bug

Comment 14 Jameer Pathan 2019-08-20 07:49:36 UTC
Verified

Verified with:
- Satellite 6.6.0 snap 16

Test steps:
1. Configure 6 systems with same scap policy. 
2. Scan the system at least once. 
3. Change the default paging size in Satelite setting page.(set to 5)
4. Go to Host >> Policy >> Click on Dashboard button of policy.

Observation:
- Page shows all latest reports for policy associated with hosts.
- The paging size is being obeyed.

Comment 15 Bryan Kearney 2019-10-22 19:51:27 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-2019:3172


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