struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-5004) No more calling of a static variable in Struts 2.8.20 available
Date Mon, 28 Jan 2019 07:55:00 GMT

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

ASF GitHub Bot commented on WW-5004:
------------------------------------

JCgH4164838Gh792C124B5 commented on pull request #320: Fix for access issue for 2.6 discovered
in WW-5004:
URL: https://github.com/apache/struts/pull/320
 
 
   Fix for access issue for 2.6 discovered in WW-5004:
   - Restored ability to access public static fields by default.
   - Introduced a configuration flag (staticFieldAccessLevel) with three levels:
     0 - disable static field access completely.
     1 - allow public static field access (default).
     2 - allow limited non-public static field access (primitives and strings only, with hardcoded
exclusions).
   - Required 3 new test configuration files, enhanced unit tests and updates to multiple
modules to handle the new flag.
   - Fixed bad/mismatched injection parameter name for setStaticFieldAccessLevel in OgnlValueStackFactory.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> No more calling of a static variable in Struts 2.8.20 available
> ---------------------------------------------------------------
>
>                 Key: WW-5004
>                 URL: https://issues.apache.org/jira/browse/WW-5004
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5.20
>         Environment: Java 7.1 and JSP Websites
>            Reporter: Deniz Renkligül
>            Priority: Critical
>              Labels: build, features, patch, usability
>             Fix For: 2.5.21, 2.6
>
>
> After the update from Struts 2.5.18 to 2.5.20 it is not more possible to call a java
static variable in JSP like
> {code:java}
> <s:property value="@my.package.folder.my.staticClass@myStaticThemeVersion" />
> {code}
> Please see for more details the release notes of 2.5.20
>  [link https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.20|https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.20]
>  and I tried without success the following description assigned above in the release
version notes 2.5.20 with :
> {code:java}
> <constant name="struts.configuration.xml.reload" value="false"/>
> <constant name="struts.serve.static" value="true" />
> {code}
>  https://issues.apache.org/jira/browse/WW-4984
>  
> Thanks in advance for your support.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message