AbstractMessageConverterMethodProcessor returns allSupportedMediaTypes with HttpMediaTypeNotAcceptableException [SPR-10175] #14808
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Michael Osipov opened SPR-10175 and commented
When a
Controller
is able respond with a limited set of media types and the client requests a not supported media type the server respponds with aHttpMediaTypeNotAcceptableException
with all supported media types.An example request mapping:
Controller mapping
Now, let's say a client issues this GET request:
The aforementioned exception is thrown. It should contain the producible media types instead of all supported ones.
See attached screenshots for runtime inspection.
Affects: 3.1.3, 3.2 GA
Attachments:
Backported to: 3.1.4
The text was updated successfully, but these errors were encountered: