Open ollelogdahl opened 1 month ago
/cc @FroMage (resteasy-reactive), @stuartwdouglas (resteasy-reactive)
@FroMage loves these :)
Well, there's a long list of things to improve with multipart. Do you feel like helping contribute support for this @ollelogdahl ?
Describe the bug
According to the Jakarta RESTful Web Services 3.1 Specification,
@FormParam
should be supported onEntityPart
parameters in resources. More specifically stated:Currently, this is not supported in quarkus-rest (resteasy-reactive), and giving the error
Could not create converter for jakarta.ws.rs.core.EntityPart
. It is in-fact not possible to implement your ownParameterConverter
, as theFormParamExtractor
giving the string-value for the converter doesn't include the 'content-disposition' row.The following is the jist of the reproducer (a full project is attached below):
This should run correctly and respond with 200 using the following curl command
This was previously reported in https://github.com/quarkusio/quarkus/issues/38980, but no reproducer was provided.
Expected behavior
The program should start up successfully and respond to the following curl with 200:
The logs should print that the part is not null. Inspecting the
EntityPart
should give access to all attributes taken from the content-disposition header (e.g. filename), and the content should be "hello".Actual behavior
Currently quarkus fails to start and logs the following:
How to Reproduce?
./mvnw clean quarkus:dev
If quarkus succeeds in starting up, you need to
Output of
uname -a
orver
Output of
java -version
Quarkus version or git rev
3.11.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Additional information
No response