ALAN S created WW-5875:
--------------------------

             Summary: 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


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