[jboss-jira] [JBoss JIRA] (WFLY-3453) Caused by: java.lang.IllegalArgumentException: Cookie name "path" is a reserved token

Stuart Douglas (JIRA) issues at jboss.org
Thu Jun 5 09:12:16 EDT 2014


     [ https://issues.jboss.org/browse/WFLY-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas resolved WFLY-3453.
----------------------------------

    Resolution: Rejected


This change was actually made to the Servlet 3.1 API classes. I could fork the API and remove the check, but I think the best solution is to not use reserved tokens (path, domain etc) as cookie names.

> Caused by: java.lang.IllegalArgumentException: Cookie name "path" is a reserved token
> -------------------------------------------------------------------------------------
>
>                 Key: WFLY-3453
>                 URL: https://issues.jboss.org/browse/WFLY-3453
>             Project: WildFly
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Web (Undertow)
>    Affects Versions: 8.0.0.Final, 8.1.0.Final
>         Environment: windows 2003,flex with java(servlets)
>            Reporter: shaik masthan
>            Assignee: Stuart Douglas
>             Fix For: 8.1.0.Final, 8.0.0.Final
>
>
> i am getting the below error when trying to access or open  the UI page (developed using flex)  .it was properly working in tomcat version. recently migrated from tomcat to wildfly 8.0.0 Final.
>  Caused by: java.lang.IllegalArgumentException: Cookie name "path" is a reserved token
> 	at javax.servlet.http.Cookie.<init>(Cookie.java:192)
> 	at io.undertow.servlet.spec.HttpServletRequestImpl.getCookies(HttpServletRequestImpl.java:145)
> 	at com.ap.ca.mm.util.SessionUtils.getSessionManagerPrincipal(SessionUtils.java:128)
> 	at com.ap.ca.mm.util.SessionUtils.getRmpPrincipalFromSessionManagerBean(SessionUtils.java:166)
> 	at com.ap.ca.mm.util.SessionUtils.getRmpPrincipal(SessionUtils.java:96)
> 	at com.ap.ca.mm.ro.dao.csdb.EntityDAO.<init>(EntityDAO.java:149)
> 	... 42 more



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list