Fixed
Details
Assignee
Gaston DombiakGaston DombiakReporter
MattMMattMComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Gaston Dombiak
Gaston DombiakReporter
MattM
MattMComponents
Fix versions
Affects versions
Priority
Created January 18, 2007 at 8:21 AM
Updated January 19, 2007 at 3:23 AM
Resolved January 19, 2007 at 3:23 AM
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