Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3318

throwExceptionOnFailure=true doesn't detect undefined property burried in OGNL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 2.1.8
    • None
    • Value Stack
    • None

    Description

      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.

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            andreas.krueger@dv-ratio.com Andreas Krüger
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: