Can not update "Per-user offline message storage limit"

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

Environment

None

Attachments

1

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

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