You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arjohn Kampman found out a problem with encoding when trying to login using the CookieAuthenticator.
When the default encoding is latin1 and we want to use for example chinese characters, the latters won't be correctly decoded. The consequence here is that following calls won't be allowed...
See Arjohn's message of the mailling list:
We just ran into an issue with CookieAuthenticator not supporting various Unicode names and
passwords. We have debugged the issue to the encrypt() and decrypt() methods in CryptoUtils. These
methods converts byte[] to String and back again using the platform's default character encoding. If
that default encoding is ISO-8859-1, for example, decoding a cyrillic or Chinese character will result in
'?' characters in the resulting byte array.
A simple solution is to always use UTF-8 for the conversion:
replace calls to String.getBytes() with String.getBytes(StandardCharsets.UTF_8)
replace calls to constructor String(byte[]) with String(byte[], StandardCharsets.UTF_8)
The text was updated successfully, but these errors were encountered:
Arjohn Kampman found out a problem with encoding when trying to login using the CookieAuthenticator.
When the default encoding is latin1 and we want to use for example chinese characters, the latters won't be correctly decoded. The consequence here is that following calls won't be allowed...
See Arjohn's message of the mailling list:
The text was updated successfully, but these errors were encountered: