Created attachment 517855 [details]
Description of problem:
If we put string on integer data type should be restricted/throw exception. I Changed 'ALERT_PURGE' value from integer to String and imported to RHQ server. There is no validation on server CLI side! String directly inserted in to database and GUI throws exception!
Version-Release number of selected component (if applicable):
RHQ 4.1.0 Beta #47
Import settings from RHQ server via CLI,
var ex = SynchronizationManager.exportAllSubsystems();
unpack the .gz pack and change the ALERT_PURGE to string and pack it then do import.
var data = getFileBytes('export.xml.gz');
String updated successfully
Should report immediate exception/error message on CLI.
Additional info: Screen shots are attached
Added a dependency on bug 730335, which describes the underlying cause of this.
Bug 730335 has been fixed with verification steps replicating this bug.
*** This bug has been marked as a duplicate of bug 730335 ***