Issues
CFParam treats a default value of "NULL" as a null value
Fixed
Description
Environment
Any
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
dan.switzer@givainc.comdan.switzer@givainc.comPriority
NewLabels
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
Details
Details
Assignee
Pothys - MitrahSoft
Pothys - MitrahSoftReporter
dan.switzer@givainc.com
dan.switzer@givainc.comPriority
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
Created 5 January 2023 at 16:26
Updated 9 August 2024 at 10:52
Resolved 6 January 2023 at 12:25
Activity
Show:
Zac Spitzer6 January 2023 at 14:45
5.3
6.0
5.4
5.4
Zac Spitzer6 January 2023 at 12:26
a change which caused a regression ain’t fixed yet!
Pothys - MitrahSoft6 January 2023 at 12:24
I've checked this ticket with the Lucee fixed version 6.0.0.329-SNAPSHOT. Now cfparam with default "NULL" works fine.
Zac Spitzer5 January 2023 at 18:40
caused a NPE with hibernate and https://github.com/lucee/Lucee/actions/runs/3848945573
So I've stumbled on a weird behavior, which seems like a bug to me (it certainly does not match ACF behavior):
When a
param
uses a string value ofNULL
for thedefault
attribute, Lucee seems to be treat this as saying "Make this parameter null", which generates an error:If you change the string from
NULL
tonull
then it works as expected. If you add atype
attribute ofstring
, then it generates an empty string:So it appears that the string
NULL
has some special meaning when used incfparam
.