Bug 542697 - Properties of plugin configuration not being persisted
Summary: Properties of plugin configuration not being persisted
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Configuration
Version: 1.4
Hardware: All
OS: Linux
low
high
Target Milestone: ---
: ---
Assignee: John Sanda
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: RHQ_RawConfig
TreeView+ depends on / blocked
 
Reported: 2009-11-30 15:35 UTC by John Sanda
Modified: 2010-08-12 16:48 UTC (History)
1 user (show)

Fixed In Version: 2.4
Clone Of:
Environment:
Last Closed: 2010-08-12 16:48:17 UTC
Embargoed:


Attachments (Terms of Use)
connection-tab for jboss server (198.69 KB, image/png)
2009-12-03 20:50 UTC, Preethi Thomas
no flags Details

Description John Sanda 2009-11-30 15:35:59 UTC
Description of problem:
On the raw-config branch the properties of a plugin configuration are not being persisted to the database. When you go to view the connection properties on the inventory tab for a resource in the web UI, you will see a blank page because no properties are in the database. 

This is a regesssion that I think I introduced with some of my plugin container of plugin descriptor parser changes during the last couple sprints.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Deploy the JBoss AS plugin on server and agent
2. The JBoss instance for your local RHQ server should get discovered
3. Import JBoss instance into inventory
4. Go to 'Inventory' tab for resource corresponding to RHQ server
5. In the subnav click on 'connection properties'
  
Actual results:
Below the nav, the page is blank

Expected results:
Should see text and fields corresponding to the plugin configuration of the JBoss plugin.

Additional info:

Comment 1 John Sanda 2009-12-03 14:18:20 UTC
The problem here turned out to be in the serialization code in Configuration.java. I had refactored the Externalization helper methods, and with my changes, the parent references of a configurations' Property's and RawConfiguration's was not getting set; consequently, they were not getting persisted in the database. I have fixed the regression and updated unit tests accordingly. The commit for this work is,

9f6e1dc7c556715481c79e9727c347aa5e6400d8

Comment 2 Preethi Thomas 2009-12-03 20:49:07 UTC
verified.
http://storm.idm.lab.bos.redhat.com:7080

1. Deployed the JBoss AS plugin on server and agent
2. Imported JBoss instance into inventory
3. Go to 'Inventory' tab for resource corresponding to RHQ server
4. In the subnav click on 'connection properties'

result screenshot attached

Comment 3 Preethi Thomas 2009-12-03 20:50:15 UTC
Created attachment 375909 [details]
connection-tab for jboss server

Comment 4 Preethi Thomas 2009-12-15 16:27:06 UTC
moving status to on_qa as this needs to be verified after the intergration.

Comment 5 Preethi Thomas 2010-01-07 16:00:14 UTC
verified that the connection property is retained for resources
http://10.16.120.159:7080

Comment 6 Corey Welton 2010-08-12 16:48:17 UTC
Mass-closure of verified bugs against JON.


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