Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-3070

Postback forms cause NPE with classic RequestProcessor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.3.5, 1.3.8, 1.3.9
    • Fix Version/s: 1.3.10, 1.4.0
    • Component/s: Core
    • Labels:
      None

      Description

      I was unwittingly using the classic RequestProcessor when attempting to use postback forms. Unfortunately, I got a NPE:

      java.lang.NullPointerException
      org.apache.struts.taglib.TagUtils.getActionMappingName(TagUtils.java:583)
      org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:834)
      org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:467)

      I traced the problem back to a missing step in the classic RP. It does not set the ORIGINAL_URI key like the ComposableRequestProcessor. However, FormTag should explain this condition when a postback form is used but the key is absent.

        Attachments

          Activity

            People

            • Assignee:
              pbenedict Paul Benedict
              Reporter:
              pbenedict Paul Benedict
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: