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

multipart file upload doesn't work with openapi check #2523

Closed
ebadta81 opened this issue Nov 26, 2023 · 1 comment
Closed

multipart file upload doesn't work with openapi check #2523

ebadta81 opened this issue Nov 26, 2023 · 1 comment
Labels

Comments

@ebadta81
Copy link

ebadta81 commented Nov 26, 2023

Version

4.4.6, 4.5.0

Context

I get this error message:

io.vertx.ext.web.validation.RequestPredicateException: [Bad Request] File with content type \Qapplication/octet-stream\E and name file is missing
	at io.vertx.ext.web.validation.impl.ValidationHandlerImpl.runPredicates(ValidationHandlerImpl.java:184)
	at io.vertx.ext.web.validation.impl.ValidationHandlerImpl.handle(ValidationHandlerImpl.java:67)
	at io.vertx.ext.web.validation.impl.ValidationHandlerImpl.handle(ValidationHandlerImpl.java:18)

Do you have a reproducer?

multipart-reproducer

Steps to reproduce

  1. run reproducer
  2. upload file with curl -X POST "http://127.0.0.1:8888/test" -F "file=@/tmp/dims.jpeg;type=image/jpeg" -F "id=1"
@pk-work
Copy link
Contributor

pk-work commented May 28, 2024

Hi, there is a complete new rebuild of the OpenAPI Router [1], which hopefully solves the problem. Please check out if this works for you.

I am closing this issue now, as the ticket refers to a version of OpenAPI Router that is no longer supported. If the bug still occurs with the new OpenAPI router version, I would be very happy if you would open a new issue.

[1] https://vertx.io/docs/vertx-web-openapi-router/java/

@pk-work pk-work closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants