Skip to content

[Grails 8] Oversized multipart uploads cannot be handled by Grails application code #16145

Description

@matrei

Issue description

When a multipart upload exceeds the configured size limit, Tomcat may reject it while parsing request parameters before Grails’ multipart resolver or controller is invoked. As a result, the application cannot handle the failure through normal validation or error handling and cannot render the expected form error.

The request may also be wrapped by Spring Security, hiding Grails’ MultipartHttpServletRequest API and causing valid uploads using request.getFile(...) or params binding to fail.

Grails should resolve multipart requests early and preserve the resolved multipart request so both oversized-upload errors and valid file uploads remain available to application code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions