Hi,
We're upgrading from WildFly 38.0.1 to WildFly 39 but are having issues with our domain cookies. Our applications deployed to a domain server will return cookies in the form of cookiename="value.host_name:server_name". The server however isn't successfully validating these cookies in WildFly 39, thus the user remains unauthenticated. If I remove the quotes from the returned authenticated cookie and try via Postman, it works. In WildFly 38, cookies with quotes are validated successfully.
Looking into the
undertow changes, I see
UNDERTOW-2675 which feels like the cause of this, specifically that RFC6265 validation is now enabled by default; this RFC changes how quotes are processed in cookies.
It seems like there's a disconnect between the spec followed by the code that generates the cookies and the code that validates them for domains.
For a standalone server, I'm seeing that cookies are returned in the form of cookiename=value.host_name without the double quotes so continue to be processed OK in WildFly 39. For domains, I suspect the colon is triggering the quotes to be included in the response value in the first place. So this issue might just affect domain based installs.
Does this sound like a regression/bug or undocumented migration step? Is there an available workaround?
Regards,
Peter