AnsweredAssumed Answered

IllegalArgumentException: Control character in cookie ...

Question asked by oliver.g on Mar 4, 2009
Hello,

I have successfully updated from 2.9b to 3.0 labs. All seems to be allright but login with national character in username.
When i login with a username containing a german umlaut, i get an error message : "java.lang.IllegalArgumentException: Control character in cookie value, consider BASE64 encoding your value".
There is no problem accessing alfresco via CIFS. We did not have that problem with previous versions (2.9b and 2.1)

Alfresco 3.0 Labs
Ubuntu 8.04 LTS
Tomcat 5.5.27
MySQL 5.0.67
JAVA jre_1.6.0_12

Tried both full install (Tomcat 6) and war-file (Tomcat 5.5).

Log:
18:26:15,995 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_12-b04; maximum heap size 506,313MB
18:26:15,996 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (Stable 1526) schema 1002 - Installed version 3.0.0 (b 1164) schema 131
18:27:34,112 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalArgumentException: Control character in cookie value, consider BASE64 encoding your value
        at org.apache.tomcat.util.http.ServerCookie.maybeQuote2(ServerCookie.java:340)
        at org.apache.tomcat.util.http.ServerCookie.appendCookieValue(ServerCookie.java:253)
        at org.apache.catalina.connector.Response.addCookie(Response.java:958)
        at org.apache.catalina.connector.ResponseFacade.addCookie(ResponseFacade.java:341)
        at org.alfresco.web.app.servlet.AuthenticationHelper.setUsernameCookie(AuthenticationHelper.java:472)
        at org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:239)
        at org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:106)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:75)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Unknown Source)

Any idea ?

thanks in advance

Outcomes