Bug 771777 - Error Retrieving and Updating Backing Content for Webapp with Multiple Installed Packages
Summary: Error Retrieving and Updating Backing Content for Webapp with Multiple Instal...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core Server
Version: 4.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHQ 4.3.0
Assignee: Stefan Negrea
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 758753 789018
TreeView+ depends on / blocked
 
Reported: 2012-01-04 22:41 UTC by Stefan Negrea
Modified: 2013-09-01 09:59 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
: 789018 (view as bug list)
Environment:
Last Closed: 2013-09-01 09:59:24 UTC
Embargoed:


Attachments (Terms of Use)

Description Stefan Negrea 2012-01-04 22:41:02 UTC
Description of problem:
CLI methods retrieveBackingContent and updateBackingContent error if the webapp has multiple installed packages attached. A webapp should have only one installed package at any time, so under normal operation circumstances this scenario should not happen. However a database update error could result in having multiple installed packages attached to a webapp. If this happens, the uses will not be able to operate on the webapp from the CLI until the database is manually corrected.

How reproducible:
Every time.

Steps to Reproduce:
1. Have a JBoss AS5, JBoss AS4, or Tomcat server inventoried
2. Manually update the database to have two installed packages attached to a webapp.
3. Use the CLI to find the webapp resource.
4. Call updateBackingContent on the webapp resource.
  
Actual results:
NPE error

Expected results:
The deployment process succeeds and the database is corrected during discovery.

Additional info:
The scenario described has a high occurrence chance with the old version scheme (eg. version=1.0). The scenario is very unlikely to happen with the new version scheme (eg. version=[sha256=abcd123]) however the risk is still present.

Comment 2 Heiko W. Rupp 2013-09-01 09:59:24 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.


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