[
https://issues.apache.org/jira/browse/WW-3318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159521#comment-13159521
]
Andreas Krüger commented on WW-3318:
------------------------------------
Hello, Lukasz,
I do not argue that devMode may not switch the whole environment. It may do
so. I have no problem with that.
I do argue that throwExceptionOnFailure works EACH TIME. Also in production.
PARTICULARILY in production.
In dev mode, it does not matter that much. But in production, I want to know
whether my software fails catastrophicly or all is well. When things go wrong
wrong wrong, when the output of my software no longer has any relationship with
the intended output (compare my FireAlam - example earlier) - I don't want that
output. I want the software to cry for help, loudly. In my opinion, that is the
behaviour Exceptions where intended to deliver. At least, that's how I use
them in my Java programming.
Regards, Andreas
> 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
> Fix For: 2.2.x
>
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira