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

MimeMapping for ots has a trailing space in its mime type #29746

Closed
SecretX33 opened this issue Feb 11, 2022 · 1 comment
Closed

MimeMapping for ots has a trailing space in its mime type #29746

SecretX33 opened this issue Feb 11, 2022 · 1 comment
Assignees
Labels
type: bug A general bug
Milestone

Comments

@SecretX33
Copy link

SecretX33 commented Feb 11, 2022

I, unfortunately, don't have enough time to submit a PR for this issue, but it is most likely a typo, and it should be really easy to fix. On the class MimeMappings, more precisely, on this line, there is a space between the last letter and the ", and I believe this is a typo, correct me if I'm wrong.

How it is right now

mappings.add("ots", "application/vnd.oasis.opendocument.spreadsheet-template ");

What I believe should have been

mappings.add("ots", "application/vnd.oasis.opendocument.spreadsheet-template");

I caught that when building unit tests for a code that parses mime types of a file for the company I work for.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 11, 2022
@wilkinsona wilkinsona changed the title Fix small typo on class MimeMappings MimeMapping for ots has a trailing space in its mime type Feb 11, 2022
@wilkinsona
Copy link
Member

Well spotted, @SecretX33. Thank you.

@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 11, 2022
@wilkinsona wilkinsona modified the milestones: 2.5.x, 2.5.10 Feb 11, 2022
@wilkinsona wilkinsona self-assigned this Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants