Closed
Description
Describe the bug
Using the resteasy-client to fetch a binary file "svg" i'm getting a ClassCastException.
Request:
curl '/public/gms-logo.svg'
The exception:
java.lang.ClassCastException: class java.util.Arrays$ArrayList
cannot be cast to class jakarta.ws.rs.core.MediaType
at org.jboss.resteasy.util.HeaderHelper.getMediaType(HeaderHelper.java:115)

Expected behavior
Return the excepted content media type.
Actual behavior
Throws an exception.
How to Reproduce?
A client like this:
public interface WebAppProxyClient {
@GET
@Path("/public/{path: .*}")
Uni<Response> staticResourceRequest(@PathParam("path") String path);
}
}
Output of uname -a
or ver
No response
Output of java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version
or gradlew --version
)
No response
Additional information
No response