Red Hat Bugzilla – Bug 1011971
System settings returned via CLI contain old server version after upgrade to jon3.2.ER1
Last modified: 2014-01-02 15:34:43 EST
Description of problem:
I upgraded a JON server from JON3.1.0.GA to jon3.2.ER1 and following CLI command
SystemManager.getSystemSettings(); returns old server version (4.4.0.JON310GA).
Steps to Reproduce:
1. install JON3.1.0.GA
2. upgrade it to jon3.2.ER1
3. run CLI command SystemManager.getSystemSettings();
actual server version
Note that this is not a regression.
Update from JON 3.1.0.GA to JON 3.1.2.GA leaves the version in the system settings at 4.4.0.JON310GA, too.
The SystemSetting.SERVER_VERSION seems to have been abandonded and is not used for anything in JON's codebase.
The version information is available using SystemManager.productInfo
It has attributes like "name", "shortName", "version", "buildNumber", etc. that identify the server, too.
I guess the solution here is to deprecate SystemSetting.SERVER_VERSION.
Author: Lukas Krejci <email@example.com>
Date: Tue Oct 1 18:04:30 2013 +0200
[BZ 1011971] - Deprecate SystemSetting.SERVER_VERSION
We have equivalent, more detailed, always up-to-date and per-server
information available in SystemManagerRemote.getProductInfo().
SERVER_VERSION would not be updated during server upgrades (this is
old behavior present at least as of RHQ 4.4.0).
Moving to ON_QA for testing in the next build.
Build Number: e413566:057b211