one way around is to set the form as not persistent and don't present the
rememberMe checkbox

On Thu, Jul 1, 2010 at 7:35 AM, Mathias <[email protected]> wrote:

>
> Hi,
>
> i have a problem with the wicket signinpanel/form and non-ascii (Swedish)
> characters. Whenever a user enters a username with, for example 'å', i get
> an exception:
>
> java.lang.IllegalArgumentException: Control character in cookie value,
> consider BASE64 encoding your value
>     at
> org.apache.tomcat.util.http.ServerCookie.maybeQuote2(ServerCookie.java:396)
>     at
> org.apache.tomcat.util.http.ServerCookie.maybeQuote2(ServerCookie.java:389)
>     at
>
> org.apache.tomcat.util.http.ServerCookie.appendCookieValue(ServerCookie.java:293)
>     at
>
> org.apache.catalina.connector.Response.addCookieInternal(Response.java:1010)
>     at
> org.apache.catalina.connector.Response.addCookieInternal(Response.java:979)
>     at org.apache.catalina.connector.Response.addCookie(Response.java:967)
>     at
>
> org.apache.catalina.connector.ResponseFacade.addCookie(ResponseFacade.java:343)
>     at
>
> javax.servlet.http.HttpServletResponseWrapper.addCookie(HttpServletResponseWrapper.java:58)
>
> I've debugged and seen that it is because the Wicket Form class uses the
> CookieValuePersister to create a cookie using the form username textvield
> value, and it can't handle non-ascii characters.
>
>
> Is there some easy way around this? From our end, we just have a
> "usernamepasswordsigninpanel" that inherits the Wicket SignInPanel class
> and
> override the "onsigninfailed" and "onsigninsuceeded" methods.
>
> Pointers would be much appreciated. We're using Wicket 1.4.8.
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/signinpanel-and-base64-tp2274942p2274942.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Pedro Henrique Oliveira dos Santos

Reply via email to