Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.1.1
-
Fix Version/s: 3.2.0 Beta
-
Component/s: Admin Console
-
Labels:None
-
Acceptance Test - Add?:No
Description
Steps to reproduce:
.log on wildfire admin console as admin, and browse to offline message setup page.
.change "Per-user offline message storage limit" to new value and clik on "save setting" button.
.the old value is still displayed and no change made to database at all.
Reason: ParamUtils.getIntParameter is used to get quota value from http request. But the quota value in the request has "double" value format that is a NumberFormatException is thrown from Integer.parse() but this exception is ignored in ParamUtils.getIntParameter. As a result, ParamUtils.getIntParameter returns the default value which is the old quota value.
Fix: change double quota = ParamUtils.getIntParameter(request,"quota",
manager.getQuota()/1024) in offine-messages.jsp to
double quota = ParamUtils.getDoubleParameter(request,"quota",
manager.getQuota()/1024)
Attached is the offline-messages.jsp with the fix.
---------------------------------
From community member Trung Nguyen