-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Description
Andreas Schneider opened SPR-6894 and commented
Hello,
for an academic investigation I compare Java Frameworks for RESTful Web Services, e.g. Spring MVC.
The configuration file contains:
<property name="mediaTypes" >
<map>
<entry key="xml" value="application/xml"/>
<entry key="json" value="application/json"/>
</map>
</property>
To test content negotiation I do every method with an exotic MIME-Type (audio/x-liveaudio). So I filled the header Accept with that type.
For the methods GET, HEAD and DELETE I receive 500 Internal Server Error.
But I expected 406 Not Acceptable for GET/HEAD and 200 OK for DELETE.
With best regards
Andreas Schneider
Affects: 3.0 GA
Issue Links:
- Allow ContentNegotiatingViewResolver to be strict ant return a 406 if no view found [SPR-6467] #11133 Allow ContentNegotiatingViewResolver to be strict ant return a 406 if no view found ("duplicates")
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug