Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1367505 - Not all files are available on the Content -> New pages if total number of files exceeds the items per page setting
Not all files are available on the Content -> New pages if total number of fi...
Status: CLOSED ERRATA
Product: JBoss Operations Network
Classification: JBoss
Component: UI (Show other bugs)
JON 3.3.6
Unspecified Unspecified
high Severity medium
: ER01
: JON 3.3.8
Assigned To: Josejulio Martínez
Hayk Hovsepyan
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-16 10:36 EDT by Amana
Modified: 2017-02-16 13:45 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-02-16 13:45:08 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
screenshots (443.66 KB, application/zip)
2016-08-26 10:08 EDT, Amana
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2592361 None None None 2016-08-30 08:10 EDT
Red Hat Product Errata RHEA-2017:0285 normal SHIPPED_LIVE Red Hat JBoss Operations Network 3.3.8 bug fix update 2017-02-16 18:44:22 EST

  None (edit)
Description Amana 2016-08-16 10:36:29 EDT
##Description of problem:

After uploading more than 15 files to a content repository assigned to a war file deployed in an EAP, it is not listed properly in "x.war -> Content -> New". Although it is listed after increasing the number of items per page "items per pages=30" and refreshing the page.

##Version-Release number of selected component (if applicable):
JBoss ON 3.3.6

##How reproducible:
Always

## Steps to Reproduce:
1. Created a "Content -> Repository" in JON 3.3 and uploaded 15 files to it;
2. Navigated to EAP -> Deployments -> guess.war (any war application deployed) -> Content -> Subscriptions and added the repository created to it;
3. Navigated to "New" tab and see the 15 files listed;
4. Navigated to "Content -> Repository" again and added one more file to my repository;
5. Now when I go back to the "Content -> New" page, I am not able to see that last uploaded file in any page. 


##Actual results:
Even if I select "Items Per Pages = 30" I noticed that it list a duplicate file instead the last one. It requires to refresh the page with "items per pages=30" in order to get the last deployed file listed properly.


##Expected results:
If navigating to page 2, it should list the last uploaded file properly.
Comment 4 Amana 2016-08-26 10:08 EDT
Created attachment 1194348 [details]
screenshots
Comment 5 Amana 2016-08-26 10:13:48 EDT
Hi Filip,

I have attached some screenshots that can help you to view the issue. Here is a brief explanation about every picture:

-jon_Content_New_page1: There are 15 files (from 1.0 - 2.4) in page-1;
-jon_Content_New_page2: If navigating to page-2, it shows "1.1" version again, instead of "2.5";
-jon_Content_New_45items: If I switch "Items Per Page" from 15 to 45, you can see that it lists 16 files. However, it repeats "1.1" instead of showing "2.5".
-jon_Content_New_45items_afterRefresh: After refreshing the page, or just navigating to another page (e.g Configuration) and going back to "Content-> New", it now displays all 16 files properly (including 2.5 version).

pleas let me know if it clarifies the issue. Or if further information is required.

Thank you!
Comment 6 Josejulio Martínez 2016-12-15 12:29:39 EST
This PR fixes the issue

https://github.com/rhq-project/rhq/pull/279
Comment 7 Josejulio Martínez 2016-12-29 14:46:56 EST
commit 31b1995bd96a9f82aa1a1a013f8c6e066827639d
Merge: fef5e1d d5510f1
Author: Josejulio Martínez <finwemartinez@gmail.com>
Date:   Thu Dec 29 13:35:27 2016 -0600

    Merge pull request #279 from josejulio/bugs/1367505
    
    Bug 1367505 - Trims result to match page controls.


commit d5510f1aa1fa025a4835ddd4c5f92c54fd9a6d55
Author: Josejulio Martínez <jmartine@redhat.com>
Date:   Tue Dec 13 02:38:05 2016 -0600

    Bug 1367505 - Trims result to match page controls.
Comment 10 Hayk Hovsepyan 2017-01-30 09:42:12 EST
Verified on ER01 build of JON 3.3.8.
Comment 11 errata-xmlrpc 2017-02-16 13:45:08 EST
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://rhn.redhat.com/errata/RHEA-2017-0285.html

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