When sending a header with the value Cookie: c=:
, the servlet implementation of JBoss 7.2.0.Final returns null
for the following code:
request.getCookies(); // null
But when I read the header it returns the value correctly:
request.getHeader( "Cookie" ); // c=:
According to the RFC 6265, colon should be considered a valid cookie-value. This answer shows the proper characters inside the allowed range (see the colon right there in the third line).
Now, can somebody tell me why the hell the javax.servlet.http.HttpServletRequest#getCookies()
implementation of JBoss 7.2.0.final cannot read a cookie created with :
in the value?