Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files with åäö in there name gets an inputstream that is null in MultipartForm uploads #41272

Closed
bjornpalmqvist opened this issue Jun 18, 2024 · 4 comments · Fixed by #46344
Labels
area/resteasy-classic kind/bug Something isn't working
Milestone

Comments

@bjornpalmqvist
Copy link

Describe the bug

When reciving multipart form data that conatins a file represented as an inputstream. The input stream is null if the filename contains åäö (in utf-8). This worked in the previous version of quarkus.

Expected behavior

Files with eg. åäö is not null.

Actual behavior

Files with eg. åäö is null.

How to Reproduce?

I attached a smal tgz that repruduces this case.
multipart.zip

Output of uname -a or ver

Linux 7540-0119 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk 21.0.2 2024-01-16 LTS

Quarkus version or git rev

3.8.4

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

Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)

Additional information

No response

@geoand
Copy link
Contributor

geoand commented Feb 18, 2025

Is this still an issue?

Also, do you know which was the last version of Quarkus that this worked?

@geoand geoand added the triage/needs-feedback We are waiting for feedback. label Feb 18, 2025
@gsmet
Copy link
Member

gsmet commented Feb 18, 2025

From what I can see, it's still an issue with 3.18.3.

@jamezp does it ring a bell? The reproducer is using RESTEasy.

@gsmet gsmet removed the triage/needs-feedback We are waiting for feedback. label Feb 18, 2025
@jamezp
Copy link
Contributor

jamezp commented Feb 18, 2025

@gsmet Yes. There was a bug in Apache James mim4j which was recently fixed and released. The RESTEasy issue was https://issues.redhat.com/browse/RESTEASY-3495 and it was fixed in mime4j 0.8.12.

@gsmet
Copy link
Member

gsmet commented Feb 18, 2025

@jamezp oh, thanks a lot, I can confirm bumping Mime4j in #46344 fixes the issue.

gsmet added a commit to gsmet/quarkus that referenced this issue Feb 18, 2025
Fixes quarkusio#41272

(cherry picked from commit ebe9486)
gsmet added a commit to gsmet/quarkus that referenced this issue Feb 18, 2025
Fixes quarkusio#41272

(cherry picked from commit ebe9486)
@geoand geoand closed this as completed in ebe9486 Feb 19, 2025
@quarkus-bot quarkus-bot bot added this to the 3.21 - main milestone Feb 19, 2025
gsmet added a commit to gsmet/quarkus that referenced this issue Feb 19, 2025
Fixes quarkusio#41272

(cherry picked from commit ebe9486)
@gsmet gsmet modified the milestones: 3.21 - main, 3.19.0, 3.18.4 Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/resteasy-classic kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants