Multipart form-data larger than 16KiB is not available through Servlet getParameter API after JBoss EAP 7.4.12

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.4.12 - 7.4.15
    • 8.0.0

Issue

  • The POST request data larger than 16KiB in multipart/form-data request becomes unavailable through Servlet getParameter API after JBoss EAP 7.4.12
  • When submitting field values via enctype multipart/form-data undertow makes up a submittedFilename for values larger than 16383 Bytes. This leads application to confuse the values with file uploads. Especially JSF wont invoke the bean setter for such values.

Resolution

Root Cause

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.