Skip to content

Error in secured post-multipart interface with large files #44929

@h3nn1n9

Description

@h3nn1n9

Describe the bug

An error occurs in a Quarkus with a secured post-multipart interface. If a larger file (about 150MB) is uploaded, the system is stuck in an endless loop without ever reaching the first line in the 'uploadFile' method. If security is switched off or a small file is uploaded, the error does not occur.
The security dependecy is io.quarkus:quarkus-elytron-security-properties-file.

The following properties are set in application.properties:

quarkus.http.auth.basic=true
quarkus.security.users.file.enabled=true
quarkus.security.users.file.users=users.properties
quarkus.security.users.file.roles=roles.properties
quarkus.security.users.file.plain-text=true
quarkus.http.limits.max-form-attribute-size=2000M
quarkus.http.limits.max-body-size=2000M

Expected behavior

The file should be uploaded and a string with the file name should be returned.

Actual behavior

If a larger file (about 150MB) is uploaded, the system is stuck in an endless loop without ever reaching the first line in the uploadFile method. If security is switched off or a small file is uploaded, the error does not occur.

How to Reproduce?

multipart-example.zip

To reproduce, a file with the name bigFile.zip must be placed in the src/main/resources/ folder. The file is too large to upload to GitHub.

Output of uname -a or ver

No response

Output of java -version

Temurin-21.0.5

Quarkus version or git rev

3.16.3

Build tool (ie. output of mvnw --version or gradlew --version)

apache-maven-3.9.9

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions