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 results: ... SERVER_VERSION 4.4.0.JON310GA ... Expected results: 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.
commit 3ab3dd077d3750536da6528df506c88c7435b31b Author: Lukas Krejci <lkrejci> 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.
Verified on Version: 3.2.0.ER4 Build Number: e413566:057b211