Cfcookie reads empty cookies as Null

Description

See related issue. Cookies created by said issue are read differently by Lucee and ACF.

ACF: Empty cookie is read as 'empty string'. isNull => 'NO'.

Lucee: Empty cookie is read as NULL. isNUll => 'True';

http://trycf.com/scratch-pad/gist/9963e4742554ffe1f083e12bfc70eeed

Activity

Pothys - MitrahSoft 
29 June 2020 at 14:14

, Did you see my above comment. Cookie reads empty value correctly as per ACF. Shall I close the ticket?.

Pothys - MitrahSoft 
29 December 2016 at 14:58

Hi ,

I've analyzed this ticket & i hope this is not an issue actually. Because if we pass a variable whose value is empty (""), it returns false. It is the right behaviour.

This should be considered this as an issue only if we consider as lucee bug. So we can just close this ticket.

I've added the test cases for this. Please check that.

Pull request: https://github.com/lucee/Lucee/pull/150

Unresolved

Details

Assignee

Reporter

Labels

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

Affects versions

Priority

Created 26 July 2016 at 08:30
Updated 28 April 2022 at 02:02