[ 
https://issues.apache.org/jira/browse/WW-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-5875:
------------------------------
    Fix Version/s: 7.6.0

> REST plugin does not authorize scalar container elements at their indexed path
> ------------------------------------------------------------------------------
>
>                 Key: WW-5875
>                 URL: https://issues.apache.org/jira/browse/WW-5875
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - REST
>    Affects Versions: 7.5.0
>            Reporter: ALAN S
>            Priority: Major
>             Fix For: 7.6.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> For a REST body, a scalar container property (\{{List<String>}}, 
> \{{Map<String, String>}}, \{{String[]}}) is only authorized at its own path 
> (\{{tags}}), not at the element path (\{{tags[0]}}). With 
> \{{@StrutsParameter}} on the setter only, this body still fills the list:
> {code:json}
> {"tags":["admin"]}
> {code}
> Indexed form parameters and the JSON plugin require \{{tags[0]}} for this, 
> and \{{ContentTypeInterceptor}} already checks \{{path[0]}} for bean 
> elements. Scalar elements should get the same check in the Jackson 
> deserializer, the \{{ContentTypeInterceptor}} two-phase copy and 
> \{{JuneauXmlHandler}}.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to