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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.24, 2.5
    • 2.3.28, 2.5
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: