Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3211

Multipart request filter exception on forward.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.4
    • 4.3.1, 4.2.4, 4.1.6
    • core
    • Tomcat on windows, but it should be system-independent

      If a forward is executed at some point during a multipart submit/request, the multipart filter is triggered again and tries to re-parse the already parsed request. The multipart filter (both the cos one and the commons-fileupload one) should extend OncePerRequestFilter and not simply the AbstractMagnoliaFilter.

      Steps to reproduce:

      • create a page with a multipart form and a file upload input.
      • make the form submit to a virtualUri
      • make that virtualUri do a forward (not redirect) to another page
      • submit the form with a file
      • see the exception

      This is the simplest case (even if not common, I admit). But any forward on multipart request causes the same problem.

        Acceptance criteria

              tmattsson Tobias Mattsson
              dfghi Danilo Ghirardelli
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD