Bad encoding in session with LDAP backend and special characters
Concerned version
Version: %2.0.11
Platform: Nginx
Summary
Accents or special characters in attributes of LDAP userDB are not well displayed when saved into backend session. I also looked into session DB directly, and characters are not well encoded here too, then it's not a browser display problem I suppose.
Logs
In session explorer but also in CAS tickets
for example "é" gives "é"
Backends used
LDAP for Auth, UserDB and Session
Possible fixes
Into /usr/share/perl5/Lemonldap/NG/Portal/UserDB/LDAP.pm::setSessionInfo()
replacing
51: $req->sessionInfo->{$k} = $value;
by
51: $req->sessionInfo->{$k} = encode($value);
looks fixing the problem but cannot test with other session backends I included the standard Encode library. Don't know if it was really necessary though