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.
A patch for this
Updated version of the patch that also handles the back button correctly.
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
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs. keyword: new = Tracking + FutureFeature + SubBug
making sure we're not missing any bugs in rhq_triage
Heiko, can you add reproduction steps to this bug so QA can test and then apply your patch.
Created attachment 416488 [details] DemoServer-plugin-A.jar
Created attachment 416489 [details] DemoServer-plugin-B.jar Second version of plugin
Comment on attachment 416488 [details] DemoServer-plugin-A.jar First version of plugin
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.
Created attachment 416490 [details] Screenshot of the issue
setting to ON_QA for verification of the original issue as requested in comment 6
Created attachment 418579 [details] screenshot for message_535718
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.
bea23b1 on release-3.0.0 branch
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.
Mass-closure of verified bugs against JON.