CFCOOKIE - Incompatibility with ACF

Description

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

Environment

None

Activity

Show:
Pothys - MitrahSoft
December 4, 2019, 10:18 AM

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

Fixed

Assignee

Mircea Botez

Reporter

Gunter Otté

Priority

Minor

Labels

Fix versions

Sprint

None

Affects versions

Configure