Description of problem: Packages in a repository, that have an identical name to the deployment it's subscribed to, disappear in the Content->New screen. Version-Release number of selected component (if applicable): 3.3.0 How reproducible: Always Steps to Reproduce: 1) Create repository - uploaded numerous WAR files to the repository. All WAR files were uploaded with the same name (web_policy.war) but different version numbers (1.0.0, 1.0.1, 1.0.2, 1.0.3) 2) Deploy a WAR through the Create Child -> Deployment function on the JBOSS region. Uploaded the web_policy.war 1.0.0 file and deployment is successful. Content -> History screen has a record of the deployment and Content -> Deployed screen lists the WAR file. 3) Subscribe the deployment to the repository created in Step 1. 4) Under the New tab, the contents of the repository do not appear. I should see four WARs listed on this screen. Every time I load this screen, the following appears in the server.log file: 08:31:46,703 WARN [org.rhq.core.domain.server.PersistenceUtility] (http-/0.0.0.0:7080-13) Queries should really supply default sort columns. Caller did not: org.rhq.enterprise.server.content.ContentUIManagerBean.getPackageVersionCompositesByFilter(ContentUIManagerBean.java:252) 08:31:46,734 WARN [org.rhq.core.domain.server.PersistenceUtility] (http-/0.0.0.0:7080-13) Queries should really supply default sort columns. Caller did not: org.rhq.enterprise.server.content.ContentUIManagerBean.getPackageVersionCompositesByFilter(ContentUIManagerBean.java:267) 08:31:46,854 WARN [org.rhq.core.domain.server.PersistenceUtility] (http-/0.0.0.0:7080-6) Queries should really supply default sort columns. Caller did not: org.rhq.enterprise.server.content.ContentUIManagerBean.getPackageVersionCompositesByFilter(ContentUIManagerBean.java:252) 08:31:46,867 WARN [org.rhq.core.domain.server.PersistenceUtility] (http-/0.0.0.0:7080-6) Queries should really supply default sort columns. Caller did not: org.rhq.enterprise.server.content.ContentUIManagerBean.getPackageVersionCompositesByFilter(ContentUIManagerBean.java:267) 08:31:46,880 WARN [org.rhq.core.domain.server.PersistenceUtility] (http-/0.0.0.0:7080-4) Queries should really supply default sort columns. Caller did not: org.rhq.enterprise.server.content.ContentUIManagerBean.getPackageVersionCompositesByFilter(ContentUIManagerBean.java:252) 08:31:46,902 WARN [org.rhq.core.domain.server.PersistenceUtility] (http-/0.0.0.0:7080-4) Queries should really supply default sort columns. Caller did not: org.rhq.enterprise.server.content.ContentUIManagerBean.getPackageVersionCompositesByFilter(ContentUIManagerBean.java:267) Actual results: Under the New tab, the contents of the repository do not appear. Expected results: I should see four WARs listed on this screen. Additional info:
Restarting the server the agent is running on sometimes fixes this but only when the following condition is met: 1) The deployed WAR isn't listed under the Content -> Deployed screen even though it is deployed. It appears that if web_policy.war is listed in the Deployed screen, then the WAR files won't appear in the New screen. But if web_policy.war is NOT listed in the Deployed screen (which sometimes happens after the server reboot), then the packages will appear in the New screen. Performing another deploy from the repository makes them disappear again. Also, if I upload a package into the repository with a different name than the deployment (ie. web_policy-1.0.3.war), it will always appear in the NEW screen.
branch: master link: https://github.com/rhq-project/rhq/commit/27d5b0ad3 time: 2015-04-08 15:29:34 +0200 commit: 27d5b0ad372b92696cced44b795b90407615dfc2 author: Libor Zoubek - lzoubek message: Bug 1188743 - Packages in a repository, that have an identical name to the deployment it's subscribed to, disappear in the Content->New screen. Fix strict filtering of packageVersions, now we only return all packages excluding installed ones (can have same name, but must differ in version). Also fixed warning about missing default sort columns in queries.
Cherry-picked to release/jon3.3.x: commit 9ceffbc7a73b10ee93755511d6063b0dedcfdb23 Author: Libor Zoubek <lzoubek> Date: Wed Apr 8 15:29:34 2015 +0200 Bug 1188743 - Packages in a repository, that have an identical name to the deployment it's subscribed to, disappear in the Content->New screen. Fix strict filtering of packageVersions, now we only return all packages excluding installed ones (can have same name, but must differ in version). Also fixed warning about missing default sort columns in queries. (cherry picked from commit 27d5b0ad372b92696cced44b795b90407615dfc2)
Moving to ON_QA for testing with latest cumulative patch build: https://brewweb.devel.redhat.com//buildinfo?buildID=429507 Note: Build maps to JON 3.3.2 ER01 build.
Created attachment 1014474 [details] repo_packages
verified in JON 3.3.2 ER01
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/RHSA-2015-0920.html