Skip to content

Consider removal of APPLICATION_JSON_UTF8 (and MediaTypes) #17062

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
rwinch opened this issue May 6, 2025 · 1 comment
Closed

Consider removal of APPLICATION_JSON_UTF8 (and MediaTypes) #17062

rwinch opened this issue May 6, 2025 · 1 comment
Assignees
Labels
status: duplicate A duplicate of another issue type: bug A general bug

Comments

@rwinch
Copy link
Member

rwinch commented May 6, 2025

MediaTypes was put in as a temporary measure for getting updated to Spring Framework 7 so that we could more carefully consider the removal of APPLICATION_JSON_UTF8.

Spring Framework removed APPLICATION_JSON_UTF8 because:

Deprecated as of 5.2 in favor ofAPPLICATION_JSON since major browsers like Chrome now comply with the specification and interpret correctly UTF-8 special characters without requiring a UTF-8 parameter.

We should review if APPLICATION_JSON_UTF8 can be removed from Spring Security. In order to do this, we need to review Spring Security implementations that use it and see if the corresponding specifications require APPLICATION_JSON_UTF8 or if APPLICATION_JSON is acceptable. In particular, this appears to impact a number of OAuth classes, so their corresponding specs must be reviewed.

@rwinch rwinch added this to the 7.0.0-M1 milestone May 6, 2025
@rwinch rwinch added the type: bug A general bug label May 6, 2025
@rwinch rwinch changed the title Remove MediaTypes Remove APPLICATION_JSON_UTF8 (and MediaTypes) May 7, 2025
@rwinch rwinch changed the title Remove APPLICATION_JSON_UTF8 (and MediaTypes) Consider removal of APPLICATION_JSON_UTF8 (and MediaTypes) May 7, 2025
@rwinch rwinch closed this as completed May 7, 2025
@rwinch rwinch removed this from the 7.0.0-M1 milestone May 7, 2025
@rwinch rwinch self-assigned this May 7, 2025
@rwinch rwinch added the status: duplicate A duplicate of another issue label May 7, 2025
@rwinch
Copy link
Member Author

rwinch commented May 7, 2025

Closing in favor of gh-17070

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue type: bug A general bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant