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
I recently upgraded my Scala/Play project from Play! 2.3 to 2.4; and upgraded the play2-auth dependency from 0.14.1 to 0.14.2 at the same time.
Since then I've had troubles with user log in: if the login contains a white space, then it won't be possible.
The error trace was the following:
21 Jun 2016 11:40:02.166 [error] p.c.s.n.PlayDefaultUpstreamHandler - Cannot invoke the action
java.lang.IllegalArgumentException: Cookie value contains an invalid char:
at play.core.netty.utils.CookieEncoder.validateCookie(CookieEncoder.java:47) ~[play-netty-utils-2.4.6.jar:2.4.6]
[...]
As written in https://curl.haxx.se/rfc/cookie_spec.html, space must be encoded to be accepted in cookies.
Therefore, as a workaround, I updated the code of my trait extending AuthConfig:
Hi,
I recently upgraded my Scala/Play project from Play! 2.3 to 2.4; and upgraded the play2-auth dependency from 0.14.1 to 0.14.2 at the same time.
Since then I've had troubles with user log in: if the login contains a white space, then it won't be possible.
The error trace was the following:
As written in https://curl.haxx.se/rfc/cookie_spec.html, space must be encoded to be accepted in cookies.
Therefore, as a workaround, I updated the code of my trait extending AuthConfig:
becomes
Am I missing something or is that a limitation of the module?
Thanks in advance!
PS: note that I am using a particular implementation mixing AuthElement and OptionalAuthElement (see #148).
The text was updated successfully, but these errors were encountered: