Bug 547716

Summary: [raw-config] exception thrown when clicking on platform name
Product: [Other] RHQ Project Reporter: Preethi Thomas <pthomas>
Component: ConfigurationAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: jsanda
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-12 16:50:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 538114    
Attachments:
Description Flags
traceback none

Description Preethi Thomas 2009-12-15 14:29:53 UTC
Created attachment 378509 [details]
traceback

Description of problem:
traceback thrown when you click on Resources->Platform-> <platform-name>

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


How reproducible:


Steps to Reproduce:
1.Login to the RHQ server 
2. Import a resource
3. Navigate to Resources->Platform
4. Click on the platform name
  
Actual results:

trace back
javax.el.ELException: /rhq/resource/summary/table/recentConfigUpdates.xhtml @16,69 value="#{ResourceOverviewUIBean.recentConfigChanges}": Error reading 'recentConfigChanges' on type org.rhq.enterprise.gui.inventory.resource.ResourceOverviewUIBean

Expected results:
no exception

Additional info:
Trace back attached.

Comment 1 John Sanda 2009-12-15 15:30:09 UTC
This exception happened as a result of my fix for bug 544316. I added logic to account for raw config which caused a NPE when the resource has no configuration definition associated with it. I have altogether removed that logic as it really does not make sense in light of raw config. The logic was an optimization that checked for existence of config property definitions. If there were no property definitions, no query is executed. With raw config though, a resource can have a config definition that does not have any property definitions.

The commit hash for this change is,

0050ae7cdf3e8e226f728b1d64f9effde315fa76

Comment 2 Preethi Thomas 2009-12-15 15:57:20 UTC
This seems to be have been fixed in the latest raw-config branch build. 
moving to on_qa to test after integration
http://10.16.120.159:7080

Comment 3 Preethi Thomas 2010-01-07 15:33:59 UTC
verified in master. No traceback when clicking on the platform link.
http://10.16.120.159:7080/rhq/resource/summary/overview.xhtml?id=10001

Comment 4 Corey Welton 2010-08-12 16:50:59 UTC
Mass-closure of verified bugs against JON.