BasicAuthenticationFilter ignores credentials charset #7835
Labels
status: backported
An issue that has been backported to maintenance branches
status: first-timers-only
An issue that can only be worked on by brand new contributors
type: bug
A general bug
Milestone
Summary
BasicAuthenticationConverter
inBasicAuthenticationFilter
ignores given credentials charset.Actual Behavior
We try to override the credential charset using an
ObjectPostProcessor
:Actual implementation of
BasicAuthenticationFilter#setCredentialsCharset
:However, the given
credentialCharset
is never used inBasicAuthenticationFilter
and especially not inBasicAuthenticationFilter#BasicAuthenticationConverter
. So, the token is read with the default charset UTF-8 and not as needed with ISO-8859-1.Expected Behavior
Corrected
BasicAuthenticationFilter#setCredentialsCharset
:Version
v5.2.0 - v5.2.1
The text was updated successfully, but these errors were encountered: