struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume SANCHEZ (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4966) com.opensymphony.xwork2.ognl.OgnlValueStack findValue doesn't work
Date Thu, 04 Oct 2018 12:25:00 GMT

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

Guillaume SANCHEZ commented on WW-4966:
---------------------------------------

Hi, 

This is a piece of code to use in freemaker template.
{noformat}
<#if isView && (niveau gt 4) && ((!stack.findValue(parameters.affectation+'.affectation['+niveau+']')?exists)

|| (stack.findValue(parameters.affectation+'.affectation['+niveau+']')?length == 0))>
<#assign hide=true>
</#if>{noformat}
and the component call :
{noformat}
<s:component template="selectCellule" theme="xhtml">
<s:param name="noTr" value="%{'true'}" />
<s:param name="affectation" value="%{'filtreActeur.affectation'}" />
<s:param name="contexte" value="%{'contexte'}" />
<s:param name="modif" value="%{true}" />
<s:param name="niveau" value="0" />	
</s:component>{noformat}
Thanks a lot !

> com.opensymphony.xwork2.ognl.OgnlValueStack findValue doesn't work
> ------------------------------------------------------------------
>
>                 Key: WW-4966
>                 URL: https://issues.apache.org/jira/browse/WW-4966
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.35
>            Reporter: Guillaume SANCHEZ
>            Priority: Major
>
> Hi,
> since 2.3.35 Struts2 version the "com.opensymphony.xwork2.ognl." is exclude.
> In template some people use OgnlValueStack function like .findValue(String).
> Have U some fix for use this function in .ftl and .jsp ? This class have security breach
?
>  
> Thanks U



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

Mime
View raw message