[
https://issues.apache.org/jira/browse/WW-4284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart updated WW-4284:
------------------------------
Description:
I have setter in struts action:
{code:java}
setChangedPermissions(Map<String, String[]> changedPermissions) {
...
}
{code}
Passed properties are similar
{noformat}
changedPermissions.SITE=300:1
changedPermissions.SITE=100:0
changedPermissions.LANGUAGE=en:1
changedPermissions.LANGUAGE=ru:1
{noformat}
Expecting to get filled Map following
{noformat}
(KEY-> {value1, value2}):
SITE->(300:1,100:0)
LANGUAGE->(en:1,ru:1)
{noformat}
Method 'setChangedPermissions' is called several time. Each call passes
separate map and later fills with single 'key' value.
I expect that 'setChangedPermissions' should be called single time and map
filled with all values at once.
was:
I have setter in struts action:
{code:java}
setChangedPermissions(Map<String, String[]> changedPermissions) {
...
}
{code}
Passed properties are similar
{noformat}
changedPermissions.SITE=300:1
changedPermissions.SITE=100:0
changedPermissions.LANGUAGE=en:1
changedPermissions.LANGUAGE=ru:1
{noformat}
Expecting to get filled Map following (KEY-> {value1, value2}):
{noformat}
SITE->(300:1,100:0)
LANGUAGE->(en:1,ru:1)
{noformat}
Method 'setChangedPermissions' is called several time. Each call passes
separate map and later fills with single 'key' value.
I expect that 'setChangedPermissions' should be called single time and map
filled with all values at once.
> Type conversion for map with lists calls several taim set
> ---------------------------------------------------------
>
> Key: WW-4284
> URL: https://issues.apache.org/jira/browse/WW-4284
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.15.1
> Reporter: Egidijus
> Fix For: 2.3.18
>
>
> I have setter in struts action:
> {code:java}
> setChangedPermissions(Map<String, String[]> changedPermissions) {
> ...
> }
> {code}
> Passed properties are similar
> {noformat}
> changedPermissions.SITE=300:1
> changedPermissions.SITE=100:0
> changedPermissions.LANGUAGE=en:1
> changedPermissions.LANGUAGE=ru:1
> {noformat}
> Expecting to get filled Map following
> {noformat}
> (KEY-> {value1, value2}):
> SITE->(300:1,100:0)
> LANGUAGE->(en:1,ru:1)
> {noformat}
> Method 'setChangedPermissions' is called several time. Each call passes
> separate map and later fills with single 'key' value.
> I expect that 'setChangedPermissions' should be called single time and map
> filled with all values at once.
--
This message was sent by Atlassian JIRA
(v6.2#6252)