Can't delete Cookie in 6.2.0.284

Description

Hi,
I’m getting casting errors in multiple places as we try to upgrade from lucee 5 to 6
The following works in 6.1.1.118 but breaks in 6.2.0.284 (but we can’t use 6.1.1.118 because of other issues)

<cfscript> cookiename = "test" //set cookie cfcookie( name=cookiename value="abc" domain="graph-local.proworkflow.com" preserveCase = true expires = 1, httponly= true , path = "/", secure="true" ); //later on logout structDelete(cookie, cookiename ); </cfscript>

I get the error
class javax.servlet.http.Cookie cannot be cast to class lucee.loader.servlet.jakarta.CookieJavax (javax.servlet.http.Cookie and lucee.loader.servlet.jakarta.CookieJavax are in unnamed module of loader java.net.URLClassLoader @1cf4f579)


Environment

Docker Image: lucee:6.2.0.284-RC-light-nginx-tomcat10.1-jre21-temurin-jammy

Attachments

1
  • 16 Jan 2025, 10:20 pm

Activity

Show:

Regan Simons 27 January 2025 at 21:02

I can confirm this issue is fixed for us in 6.2.0.298 🙂

Pothys - MitrahSoft 27 January 2025 at 08:10
Edited

, I have investigated this ticket with Lucee version 6.2.0.299-SNAPSHOT on both local(Tomcat 9) and Docker (Tomcat 10). When I executed the test code, the struct delete now clears the cookie, and no issues were encountered.

Zac Spitzer 24 January 2025 at 17:07

working for me in docker, and locally with tomcat 9, can you confirm it’s working for you?

Michael Offner 24 January 2025 at 16:43

can you please give this a try
https://github.com/lucee/Lucee/commit/5217fcb3320f6e535084693b4365807233cd7c62

Michael Offner 24 January 2025 at 16:11

problem is only happening with Tomcat 10 (Jakarta)

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 January 2025 at 01:21
Updated 27 January 2025 at 21:07
Resolved 27 January 2025 at 21:07

Flag notifications