Description of problem: Rollback fails on structured & raw server Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1.Login to RHQ Server 2. navigate to the structured and raw server and go to configure tab 3.change the config value from the command prompt or from ui so that more than one revision is created 4. Navigate to Configuration ->History 5. Select an older revision to revert to 6. Click on Rollback button Actual results: Failed to rollback resource configuration to version 10145. Cause: org.rhq.enterprise.server.configuration.ConfigurationUpdateNotSupportedException:Cannot update a resource configuration that supports both structured and raw configuration using this method because there is insufficient information. You should instead call updateStructuredOrRawConfiguration() which requires you whether the structured or raw was updated. Expected results: Rollback successful. Additional info:
The error message with the ConfigurationUpdateNotSupportedException explains the issue. The older updateResourceConfiguration() method is being called, but it cannot be called for a configuration that supports both structured and raw. Instead, the new method, updateStructuredOrRawConfiguration() should be called since it takes a flag to indicate from which side (structured or raw) the update is happening.
Committed fix for this. The hash is, f43773789e7d9ec2826b951004c48d30afcfa571 Resource configuration rollback previously did not support configurations that support both structured and raw. Rollback for those configs is now implemented as an update from raw.
Rollback works on structured server & structured and raw server. raw server has some problems. will move to verified once I verify it on raw only server.
Rollback is working in the latest raw-config branch. moving to on_qa to test after merge.
verified in http://10.16.120.159:7080 rollback work in raw server, structured server , structured and raw server.
Mass-closure of verified bugs against JON.