[
https://issues.apache.org/jira/browse/WW-4333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13980806#comment-13980806
]
Michael Hintenaus commented on WW-4333:
---------------------------------------
looking at the first part of the current regex
{code:java}
(.*\\.|^|.*|\\[('|\"))
{code}
the third opinion is .* which will match anything, so if this is intended the
regex could be simplified.
But I believe you wanted to match .*[... so the last pipe of the subregex would
be wrong.
I would suggest the following regex (removed pipe and use range instead of
group)
{code:java}
(.*\\.|^|.*\\[['\"])class(\\.|['\"]\\]|\\[).*
{code}
> ExcludedPatterns.CLASS_ACCESS_PATTERN is too restrictive
> --------------------------------------------------------
>
> Key: WW-4333
> URL: https://issues.apache.org/jira/browse/WW-4333
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.16.2
> Reporter: Michael Hintenaus
> Priority: Critical
> Fix For: 2.3.18
>
>
> it's not possible to set values on nested properties if the parent property
> ends with "class", for example "firstClass.value"
--
This message was sent by Atlassian JIRA
(v6.2#6252)