We're updating the issue view to help you get more done. 

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

Acceptance Test - Entry

None

Assignee

Gaston Dombiak

Reporter

MattM

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Major
Configure