5.3.9 regression, cookie encoding/decoding problems

Description

Cookies are getting encoded using HTML entities, which appear to break decoding/parsing (over multiple cookies).

Apparent regression through

Test case (run twice to see resulting cookies):

More details in https://dev.lucee.org/t/cookie-encoding-decoding-broken/9806

Environment

None

Attachments

3

Activity

Zac Spitzer 20 July 2022 at 07:15

not 100% sure this is all working tho

expect( getCookie(res, "HTML") ).toBe("space& & space & &nbsp"); // TODO shouldn't there be a trailing ;?

Admin 28 March 2022 at 13:50

Looking good in all the cases I came up with.

Pothys - MitrahSoft 28 March 2022 at 12:07

I've checked this ticket with the latest lucee version 5.3.9.120-SNAPSHOT and the issue was solved. Could you please check this with the latest version and report here back?

Michael Offner 25 March 2022 at 17:23

ok fixed that issue as well

Michael Offner 25 March 2022 at 17:07

i did some more testing, this code get the cookie directly from the servlet engine (in my case tomcat)

dump(getPageContext().getRequest().getCookies());

and it gives me this output

so the servlet engine itself does suppress this cookies

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Created 16 March 2022 at 11:10
Updated 20 July 2022 at 07:15
Resolved 21 March 2022 at 14:06