Red Hat Bugzilla – Bug 862172
Order of plugin/resource configuration properties incorrect after plug-in upgrade
Last modified: 2017-03-18 17:13:32 EDT
Scenario: User upgrades an existing plug-in that introduces new (simple) properties in plug-in or resource configurations. In the plug-in these new properties have been inserted between existing properties (i.e. they have not been added at the end).
Result: After the plug-in upgrade, on the screens that display these plug-in or resource configurations, the properties are no longer shown in the order in which they have been declared in the plug-in descriptor.
Cause: In the rhq_config_prop_def table in the database, one can see that the order_index column is not updated correctly for existing properties during a plug-in upgrade. That is because ConfigurationMetadataManagerBean doesn't contain code to update that column for simple properties. The only code that updates order_index is related to map properties.
Andreas, Can you confirm which version you are seeing this problem on? Have you tried with RHQ4.5?
Yes, I observed that with a resource configuration while testing RHQ 4.5. I added the 3.0.0 version because I noticed the same issue with a plug-in configuration some time ago (although I didn't investigate the problem further at that time).
Andreas, as you already had a peek at the source -would you be able to contribute a patch?