Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResourceHttpRequestHandler does not take into account mime types configured in WebMvcConfigurerAdapter [SPR-13658] #18233

Closed
spring-projects-issues opened this issue Nov 9, 2015 · 2 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Nov 9, 2015

Tom Adam opened SPR-13658 and commented

getMediaType method in ResourceHttpRequestHandler does not take into account the media types registered by a WebMvcConfigurerAdapter instance's configureContentNegotiation method. The method only checks mime types registered in the servlet context of JAF. This way it is impossible to register special media types for static resources except for using web.xml.


Affects: 4.1.8

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Nov 9, 2015

Rossen Stoyanchev commented

Indeed we should be doing more to connect the dots there.

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Jan 15, 2016

Rossen Stoyanchev commented

The ResourceHttpRequestHandler now supports a ContentNegotiationManager property, which the MVC java config and the MVC namespace will configure that to be the shared negotiation manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants