Skip to content

exotic MIME-Type leads to 500 Internal Server Error [SPR-6894] #11559

@spring-projects-issues

Description

@spring-projects-issues

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:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions