Bug 535718 (RHQ-2385)

Summary: SCHWERWIEGEND: Target Unreachable, 'baseurl' returned null on 'java.util.LinkedHashMap'
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: Core UIAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED CURRENTRELEASE QA Contact: Sunil Kondkar <skondkar>
Severity: medium Docs Contact:
Priority: high    
Version: 1.3preCC: cwelton
Target Milestone: ---Keywords: SubBug
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-2385
Whiteboard:
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
QA8258
Last Closed: 2010-08-12 16:58:57 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: 565628, 577992    
Attachments:
Description Flags
rhq-2385.patch
none
DemoServer-plugin-A.jar
none
DemoServer-plugin-B.jar
none
Screenshot of the issue
none
screenshot for message_535718 none

Description Heiko W. Rupp 2009-08-26 08:45:00 UTC
When manually adding a resource whose connection properties have changed since an earlier plugin version, I get

SCHWERWIEGEND: Target Unreachable, 'baseurl' returned null on 'java.util.LinkedHashMap'

in the server log and UI and the new resource can not be added.

We have seen that in the past with the creation in war files in RHQ-1555. Solution there was to put the managed bean into session scope and to correctly clean up etc.

Comment 1 Heiko W. Rupp 2009-08-26 13:33:25 UTC
A patch for this

Comment 2 Heiko W. Rupp 2009-08-26 14:52:13 UTC
Updated version of the patch that also handles the back button correctly.

Comment 3 Red Hat Bugzilla 2009-11-10 21:03:21 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2385
Imported an attachment (id=368784)
This bug is related to RHQ-1555


Comment 4 wes hayutin 2010-02-16 16:58:19 UTC
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.

keyword:
new = Tracking + FutureFeature + SubBug

Comment 5 wes hayutin 2010-02-16 17:03:12 UTC
making sure we're not missing any bugs in rhq_triage

Comment 6 Charles Crouch 2010-05-18 03:56:28 UTC
Heiko, can you add reproduction steps to this bug so QA can test and then apply your patch.

Comment 7 Heiko W. Rupp 2010-05-25 19:34:27 UTC
Created attachment 416488 [details]
DemoServer-plugin-A.jar

Comment 8 Heiko W. Rupp 2010-05-25 19:35:36 UTC
Created attachment 416489 [details]
DemoServer-plugin-B.jar

Second version of plugin

Comment 9 Heiko W. Rupp 2010-05-25 19:36:06 UTC
Comment on attachment 416488 [details]
DemoServer-plugin-A.jar

First version of plugin

Comment 10 Heiko W. Rupp 2010-05-25 19:40:03 UTC
How to reproduce:

Deploy first version of attached plugin that has

<plugin-configuration>
  <c:simple-property name="one"  ... />
  <c:simple-property name="two" ... />
</plugin-configuration>

Then go to the platform, try to manual add the resource "DemoServer". 
This shows the two properties. Click on ok. (actually this will result in an error, but this does not matter here).

Then deploy 2nd version of attached plugin that has

<plugin-configuration>
  <c:simple-property name="two"  ... />
  <c:simple-property name="three" ... />
</plugin-configuration>

Again, go to the platform, manually add the resource "DemoServer". This shows the new 2 properties.
Click on ok and the "Target Unreachable, 'three' returned null on 'java.util.LinkedHashMap'" issue will show up.

Comment 11 Heiko W. Rupp 2010-05-25 19:40:33 UTC
Created attachment 416490 [details]
Screenshot of the issue

Comment 12 Heiko W. Rupp 2010-05-25 19:41:30 UTC
setting to ON_QA for verification of the original issue as requested in comment 6

Comment 13 Sunil Kondkar 2010-06-01 10:37:14 UTC
Created attachment 418579 [details]
screenshot for message_535718

Comment 14 Sunil Kondkar 2010-06-01 10:40:26 UTC
Verified on jon build#181 (Revision: 10621)

Deployed the first version of attached plugin and then second. Manually added the resource to platform. Clicking OK button displays the message "Target Unreachable, 'three' returned null on 'java.util.LinkedHashMap'"

Please refer the attached screenshot.

Comment 15 Heiko W. Rupp 2010-06-15 09:25:34 UTC
bea23b1 on release-3.0.0 branch

Comment 16 Sunil Kondkar 2010-06-23 10:07:20 UTC
Verified on JON 2.4 GA_QA build

Deployed the first version of attached plugin and then second. Manually added
the resource to platform. 
Entered values in properties 'Three' and 'Two'. Clicking OK button does not display the error 'SCHWERWIEGEND: Target Unreachable, 'baseurl' returned null on
'java.util.LinkedHashMap' in server log and in UI.

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