[MAGNOLIA-3211] Multipart request filter exception on forward. Created: 24/May/10  Updated: 20/Feb/15  Resolved: 09/Nov/10

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 4.3.1, 4.2.4, 4.1.6
Fix Version/s: 4.4

Type: Bug Priority: Major
Reporter: Danilo Ghirardelli Assignee: Tobias Mattsson
Resolution: Fixed Votes: 1
Labels: filter, multipart
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Tomcat on windows, but it should be system-independent


Attachments: Text File Filters.patch    
Issue Links:
relation
is related to BLOSSOM-11 Implement support for multipart reque... Closed
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

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.


Generated at Mon Feb 12 03:44:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.