-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug
Milestone
Description
Sam Brannen opened SPR-13157 and commented
Status Quo
Spring's MimeType currently performs exact equality checks for "charset" values in its parameters field -- see org.springframework.util.MimeType.equals(Object).
As a result, the MIME types text/plain;charset=UTF-8 and text/plain;charset=utf-8 are incorrectly considered to be different, and this breaks the contract for Java's Charset:
Charset names are not case-sensitive; that is, case is always ignored when comparing charset names.
See also: failing build SPR-PUB-2539.
Related Resources
- Change in Jetty 9 that is related to charsets.
Affects: 4.0 GA
Issue Links:
- MimeType compareTo implementation is not compatible with equals [SPR-16458] #21003 MimeType compareTo implementation is not compatible with equals
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug