Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add workaround

...

When a Multipart request has non-file normal form fields, Struts used to bring them into memory as Strings without checking their sizes. This could lead to OOM if developer has set struts.multipart.maxSize to a value equal or greater than the available memory.

Solution

Upgrade to Struts 2.5.30.1 or 6.1.2.1 or greater.

...

No issues expected when upgrading to Struts 2.5.30.1 or 6.1.2.1

Workaround

N/ASet struts.multipart.maxSize to a value much much smaller than the available memory.