Issues
CFCOOKIE - Incompatibility with ACF
Fixed
Description
Environment
None
Attachments
1
Details
Assignee
Mircea BotezMircea BotezReporter
Gunter OttéGunter OttéPriority
MinorLabels
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
NoneAffects versions
Details
Details
Assignee
Mircea Botez
Mircea BotezReporter
Gunter Otté
Gunter OttéPriority
Labels
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
None
Affects versions
Created 13 November 2019 at 11:17
Updated 5 May 2020 at 12:44
Resolved 5 May 2020 at 12:44
Activity
Show:
Pothys - MitrahSoft4 December 2019 at 10:18
I've checked this ticket & confirmed the issue happened on lucee latest version 5.3.5.48-SNAPSHOT also. In ACF doesn't consider this 0.417 as 0. But, lucee considered 0. This is a cause of this issue. will confirm about this
The "expires" parameter of cfcookie is only accepting integer values.
CF 9.01 is accepting floating point values to have a shorter expire time than 1 day.
<cfcookie name="testCookie1" value="ENG" expires=0.417>
The 0.417 represents the 10hrs (10/24).
This works fine in CF 9.01. However in Lucee, it looks like only integer numbers are allowed, and in my example, the Cookie expires immediately (I suspect the 0.417 becomes 0).
Support discussion: https://dev.lucee.org/t/cf-lucee-incompatibility-for-cfcookie/6261
lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/type/scope/CookieImpl.java#L263