Bug 1188743 - Packages in a repository, that have an identical name to the deployment it's subscribed to, disappear in the Content->New screen.
Summary: Packages in a repository, that have an identical name to the deployment it's ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Content
Version: JON 3.3.0
Hardware: All
OS: All
high
high
Target Milestone: ER01
: JON 3.3.2
Assignee: Libor Zoubek
QA Contact: Armine Hovsepyan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-03 15:37 UTC by dsteigne
Modified: 2019-03-22 07:36 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-04-30 16:10:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
repo_packages (117.55 KB, image/png)
2015-04-14 20:18 UTC, Armine Hovsepyan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1188751 0 high CLOSED Deploying Versioned WAR package from repository to JBOSS EAP 6 deployment resource fails 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 1337763 0 None None None Never
Red Hat Product Errata RHSA-2015:0920 0 normal SHIPPED_LIVE Moderate: Red Hat JBoss Operations Network 3.3.2 update 2015-04-30 20:09:30 UTC

Internal Links: 1188751

Description dsteigne 2015-02-03 15:37:29 UTC
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:

Comment 1 dsteigne 2015-02-03 15:46:40 UTC
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.

Comment 2 Libor Zoubek 2015-04-08 13:32:06 UTC
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.

Comment 3 Michael Burman 2015-04-08 14:32:05 UTC
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)

Comment 4 Simeon Pinder 2015-04-13 04:14:45 UTC
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.

Comment 5 Armine Hovsepyan 2015-04-14 20:18:47 UTC
Created attachment 1014474 [details]
repo_packages

Comment 6 Armine Hovsepyan 2015-04-14 20:19:10 UTC
verified in JON 3.3.2 ER01

Comment 8 errata-xmlrpc 2015-04-30 16:10:56 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://rhn.redhat.com/errata/RHSA-2015-0920.html


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