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

ServletActionContext.getRequest() doesn't return the MultiPartRequestWrapper (or StrutsRequestWrapper) when using StrutsPrepareFilter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.24, 2.5
    • Fix Version/s: 2.3.28, 2.5
    • Component/s: None
    • Labels:
      None

      Description

      MultiPartRequestWrapper (or StrutsRequestWrapper) is created in Dispatcher.wrapRequest but, there, it's not updated in ServletActionContext.
      Probably the update is done later because FileUploadInterceptor.intercept has access to the correct object; but using only StrutsPrepareFilter (instead of an execute one) the method ServletActionContext.getRequest() never return the MultiPartRequestWrapper (or StrutsRequestWrapper).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fmunafo Filippo Munafò
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: