Full Null support and structDelete variable of session

Description

With Null Support enabled, if you destroy a session.someVar with:

structDelete(session, "someVar") ;

the var is set to null and StructKeyExists(session, "someVar") returns true.

Test case attached. With partial null support, structKeyExists returns false, with full null support enabled returns true.

In Lucee 4.5 both returns false.

Environment

Ubuntu 16.04, tomcat 8

Attachments

2

Activity

Pothys - MitrahSoft 
9 August 2018 at 07:57

I've added a test case for this ticket

*Pull request:*https://github.com/lucee/Lucee/pull/547

Michael Offner 
8 August 2018 at 06:26

problem is that deleting an element, only mark it as deleted but does not actually delete it, this is necessary because the store method at the end of the request need to know that it was deleted, so that it get deleted in the storage as well.

Michael Offner 
8 August 2018 at 06:04

also happens with datasource storage

Michael Offner 
8 August 2018 at 06:02

only happen with session storage cache, memory works as expected

Fixed

Details

Assignee

Reporter

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

Affects versions

Created 3 August 2018 at 11:30
Updated 20 May 2021 at 10:09
Resolved 13 August 2018 at 15:30