<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Thanks for that. I did do a search but didn’t manage to find that ticket, better polish up my search skills :-)
<div class=""><br class="">
</div>
<div class="">brian…</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 3 Aug 2018, at 8:14 PM, Masafumi Miura &lt;<a href="mailto:mmiura@redhat.com" class="">mmiura@redhat.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi,<br class="">
<br class="">
This was already reported at <a href="https://issues.jboss.org/browse/UNDERTOW-1163" class="">
https://issues.jboss.org/browse/UNDERTOW-1163</a><br class="">
<br class="">
If you upgrade to WildFly 12 or later, you can allow a comma as cookie separator by setting the system property &quot;io.undertow.legacy.cookie.COMMA_IS_SEPARATOR&quot; to true:
<div class=""><br class="">
&nbsp; &nbsp; ./bin/standalone.sh ...&nbsp; -Dio.undertow.legacy.cookie.COMMA_IS_SEPARATOR=true<br class="">
<br class="">
Thanks,<br class="">
--<br class="">
Masafumi Miura / 三浦 雅史<br class="">
<br class="">
On Fri, Aug 3, 2018 at 6:17 PM, Brian R Wallis &lt;<a href="mailto:Brian.Wallis@infomedix.com.au" class="">Brian.Wallis@infomedix.com.au</a>&gt; wrote:<br class="">
&gt; Are commas allowed as a separator of multiple cookies in a cookie header?<br class="">
&gt;<br class="">
&gt; I am running an application in wildfly-11.0.0.Final and another application is making a request with two cookies, JSESSIONID and JSESSIONIDSSO. It is sending these as<br class="">
&gt;<br class="">
&gt; JSESSIONIDSSO=jIEqQ-kTedwXrvqm9CBACBg8QlCXzJKILwCftnaV, JSESSIONID=lDA5h47Pk_jrnIwAshNsQ7Ot269XyVSTR1mwYNEL.localhost<br class="">
&gt;<br class="">
&gt; which then seems to be parsed into a single cookie<br class="">
&gt;<br class="">
&gt; JSESSIONIDSSO=jIEqQ-kTedwXrvqm9CBACBg8QlCXzJKILwCftnaV, JSESSIONID<br class="">
&gt;<br class="">
&gt; which of course does not work for the authentication so the request fails. This seems to be a failure in parsing the original cookie string. There is a bit of confusion in this area in the RFCs as the earlier ones allowed comma as a separator but the most
 recent, RFC-6265, does not. Undertow should probably allow a comma separator for backward compatibility with older implementations.<br class="">
&gt;<br class="">
&gt; Thanks<br class="">
&gt; brian wallis…<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; The full dump from the undertow request dumper is<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; 18:33:29,249 INFO &nbsp;[io.undertow.request.dump] (Unknown)<br class="">
&gt; ----------------------------REQUEST---------------------------<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;URI=/infoapi/user/profile<br class="">
&gt; &nbsp;characterEncoding=null<br class="">
&gt; &nbsp; &nbsp; &nbsp;contentLength=-1<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp;contentType=[none]<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cookie=JSESSIONIDSSO=jIEqQ-kTedwXrvqm9CBACBg8QlCXzJKILwCftnaV, JSESSIONID<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Connection=Keep-Alive<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Orbeon-Token=5b4085e06896f374e8dec7a22f9e411a2b0d2105<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Accept-Encoding=gzip,deflate<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Content-Type=none<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Cookie=JSESSIONIDSSO=jIEqQ-kTedwXrvqm9CBACBg8QlCXzJKILwCftnaV, JSESSIONID=lDA5h47Pk_jrnIwAshNsQ7Ot269XyVSTR1mwYNEL.localhost<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Cookie2=$Version=1<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Host=localhost<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; locale=[]<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; method=GET<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protocol=HTTP/1.1<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp;queryString=<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; remoteAddr=/<a href="http://127.0.0.1:55984/" class="">127.0.0.1:55984</a><br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; remoteHost=localhost<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scheme=http<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; host=localhost<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; serverPort=80<br class="">
&gt; --------------------------RESPONSE--------------------------<br class="">
&gt; &nbsp; &nbsp; &nbsp;contentLength=71<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp;contentType=text/html;charset=UTF-8<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cookie=JSESSIONIDSSO=null; domain=null; path=/<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Expires=0<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Cache-Control=no-cache, no-store, must-revalidate<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=X-Powered-By=Undertow/1<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Set-Cookie=JSESSIONIDSSO=&quot;&quot;; path=/; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Server=WildFly/11<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Pragma=no-cache<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Date=Fri, 03 Aug 2018 08:33:29 GMT<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=WWW-Authenticate=Basic realm=&quot;REST API authentication module&quot;<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Content-Type=text/html;charset=UTF-8<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header=Content-Length=71<br class="">
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; status=401<br class="">
&gt;<br class="">
&gt;<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; _______________________________________________<br class="">
&gt; undertow-dev mailing list<br class="">
&gt; <a href="mailto:undertow-dev@lists.jboss.org" class="">undertow-dev@lists.jboss.org</a><br class="">
&gt; <a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" class="">https://lists.jboss.org/mailman/listinfo/undertow-dev</a></div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>