Skip to content

o/s/mail/javamail mime.types PNG mapped to image/x-png [SPR-15546] #20105

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

Closed
spring-projects-issues opened this issue May 15, 2017 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented May 15, 2017

Matt Magoffin opened SPR-15546 and commented

I have an app that ends up using Spring's org.springframework.http.converter.ActivationMediaTypeFactory which configured the org/springframework/mail/javamail/mime.types file with the Java Activation Framework. That file, however, resolves PNG images as the *image/x-png* image type, which I only noticed because my version of Safari (10.1; OS X) refuses to display images with that MIME type.

I believe the official MIME type for PNG images is *image/png* and thus believe this file could be changed to reflect that, instead of image/x-png.

For what it's worth, I notice the org/springframework/http/mime.types file uses image/png already.


Affects: 4.3.7

Issue Links:

Referenced from: commits e835f4d, f80b2d9

@spring-projects-issues
Copy link
Collaborator Author

Matt Magoffin commented

Thanks for fixing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants