dswitzer
01/05/2023, 2:50 PMparam uses a string value of NULL for the default attribute, Lucee seems to be treated this as saying "Make this parameter null", which generates an error:
<cfscript>
param name="form.thisShouldDefaultToAString" default="NULL";
writeDump(form);
</cfscript>
If you change the string from NULL to null then it works as expected. If you add a type attribute of string, then it generates an empty string:
<cfscript>
param name="form.thisShouldDefaultToAString" type="string" default="NULL";
writeDump(form);
</cfscript>
This seems wrong to me and is certainly misleading. Is this a documented behavior?dswitzer
01/05/2023, 3:34 PMzackster
01/05/2023, 3:50 PMdswitzer
01/05/2023, 3:54 PMzackster
01/05/2023, 4:18 PMdswitzer
01/05/2023, 4:20 PMNULL might have some other consequences elsewhere in the code as well. Hopefully it's unique to cfparam and not created weird side effects in other parts of the code.zackster
01/05/2023, 4:21 PMdswitzer
01/05/2023, 4:21 PMzackster
01/05/2023, 4:22 PMdswitzer
01/05/2023, 4:26 PMzackster
01/05/2023, 4:53 PMzackster
01/05/2023, 5:30 PMdswitzer
01/05/2023, 5:32 PM