struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4429) struts.ognl.allowStaticMethodAccess is not working for static method
Date Sat, 27 Dec 2014 14:45:13 GMT

    [ https://issues.apache.org/jira/browse/WW-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14259377#comment-14259377
] 

ASF subversion and git services commented on WW-4429:
-----------------------------------------------------

Commit f4918d1e2fc254a4805963ffa91c6f7c5f5e5988 in struts's branch refs/heads/develop from
[~lukaszlenart]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=f4918d1 ]

WW-4429 Adds additional tests to cover unsecure access


> struts.ognl.allowStaticMethodAccess is not working for static method
> --------------------------------------------------------------------
>
>                 Key: WW-4429
>                 URL: https://issues.apache.org/jira/browse/WW-4429
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.3.20
>            Reporter: Tom Nguyen
>            Assignee: Lukasz Lenart
>              Labels: xwork
>             Fix For: 2.3.21
>
>
> Setting {{<constant name="struts.ognl.allowStaticMethodAccess" value="true"/>}}
in {{struts.xml}} can only allow access to static fields but not static methods
> for example 
> {{<s:property value="@java.util.Calendar@DAY_OF_WEEK"/>}} is working
> But 
> {{<s:property value="@com.your.full.package.Classname@methodName(optionalParameters)"
/>}} not working
> This feature used to work in struts-2.3.16.3, but not working after upgrade to struts-2.3.20



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message