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

Delivering static resources with wrong contenttype since 4.3RC1 (not in latest 4.2 release) [SPR-14196] #18769

Closed
spring-projects-issues opened this issue Apr 21, 2016 · 3 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket)

Comments

@spring-projects-issues
Copy link
Collaborator

Jens Goldhammer opened SPR-14196 and commented

I am running a spring boot application and just made an upgrade to Spring Boot from 1.3.3 to 1.4M2.
I have packaged my application as war file and also deliver static resources within my app to browsers, especially markdown files.

In Spring 4.2, markdown files were responded with correct content type.
In Spring 4.3RC1, markdown files are delivered back with json contenttype which leads to an error in the browser which tries to parse it as json and fails.

See conversation here:
https://gitter.im/spring-projects/spring-boot?at=571740ef98c544f1396cc5f7

Any idea where I can debug or what is missing here? Are there any changes in Spring MVC?


Affects: 4.3 RC1

Reference URL: https://gitter.im/spring-projects/spring-boot?at=571740ef98c544f1396cc5f7

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Apr 21, 2016

Rossen Stoyanchev commented

This could be related to the changes for #18233. Can you provide steps or sample code to reproduce the issue?

@spring-projects-issues
Copy link
Collaborator Author

Rossen Stoyanchev commented

Jens Goldhammer, suggestions?

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Aug 26, 2016

Rossen Stoyanchev commented

This looks like a potential duplicate #19146. Jens Goldhammer can you confirm if that's the case, in particular I would expect that that you also have favorPathExtension=false.

@spring-projects-issues spring-projects-issues added type: bug A general bug in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues removed the type: bug A general bug label Jan 11, 2019
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)
Projects
None yet
Development

No branches or pull requests

2 participants