public class JiraSafeActionParameterSetter extends Object
BeanUtil.setProperties(java.util.Map, Object)
This uses a different set of rules when accepting input from the web, with some nods towards webwork1 to keep its old
behaviour but lose its dangerous nature.
java.beans
setters can be invoked. You can not longer navigate away from an Action
into other code. In the old days one could invoke nearly arbitrary code. Uncool!
KnownParameterConverters
for a complete list but
basically its Strings, Longs, Integers, Shorts, Bytes and so on.
IllegalArgumentAware
, then it will be told about bad parameters and the
exception will be ignored. All JiraWebActionSupport
actions implements IllegalArgumentAware
. JIRA is aware!
Introduced / changed as part of JRA-15664Constructor and Description |
---|
JiraSafeActionParameterSetter() |
Modifier and Type | Method and Description |
---|---|
void |
setSafeParameters(webwork.action.Action action,
Map<String,?> webParameters)
This is called to set a map of parameters into an action.
|
public void setSafeParameters(webwork.action.Action action, Map<String,?> webParameters)
SafeAction
and an assertions is made to that end.action
- the action in playwebParameters
- the map of web request parametersCopyright © 2002-2015 Atlassian. All Rights Reserved.