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

An incorrect jsp name for the plainText results type quietly fails

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.2.1
    • 2.3.8
    • Core Actions
    • None

    Description

      An incorrect jsp name for the plainText results type quietly fails and there is no logging indication either. For example, jsp/myjsp.jsp might be incorrect. One executes the action and nothing comes out, no error, no nothing. Change to /jsp/myjsp.jsp and suddenly all is well. In revision 651946 of PlainTextResult.java, for example (should be the same in other versions - experienced in Struts 2.2.1), @ line 148, an exception happens and execution jumps to the finally. As a result, the null check is skipped and no chance of logging.

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            ericlentz Eric Lentz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: