You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2022/08/11 12:13:00 UTC
[jira] [Closed] (WW-3318) throwExceptionOnFailure=true doesn't detect undefined property burried in OGNL
[ https://issues.apache.org/jira/browse/WW-3318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart closed WW-3318.
-----------------------------
Resolution: Fixed
There is additional {{struts.el.throwExceptionOnFailure}} flag which can be used
> throwExceptionOnFailure=true doesn't detect undefined property burried in OGNL
> ------------------------------------------------------------------------------
>
> Key: WW-3318
> URL: https://issues.apache.org/jira/browse/WW-3318
> Project: Struts 2
> Issue Type: Bug
> Components: Value Stack
> Affects Versions: 2.1.8
> Reporter: Andreas Krüger
> Assignee: Lukasz Lenart
> Priority: Major
> Fix For: 6.1.0
>
>
> Setup:
> struts.el.throwExceptionOnFailure=true in struts.properties
> In the value stack, there is no object which has any property "xxx"
> The JSP has <s:property value="xxx == null ? 'Not yet determined' : xxx" />
> Expected behaviour: As the property xxx is not defined, this should throw an exception.
> Behaviour seen: The string "Not yet determined" gets inserted into the HTML output as if nothing were wrong.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)