I am writing here to report an error we are experiencing with wirebox and Lucee.
Below is our Application.cfc with null support set to true.
component{
this.name = "test-wirebox";
this.nullSupport = true;
public boolean function onRequestStart(){
var wirebox = new wirebox.system.ioc.Injector("config.WireboxBinderService");
return true;
}
}
Just to be clear, are you saying you get error when you set this.nullSupport = true; in the Application.cfc, but when you set the setting in the Admin UI, it works? For all I knew, those were the same setting!
Thanks for helping research. It sounds like there are two issues here. The first is that the application.cfc setting bahaves differently than the admin setting. This is a Lucee bug, if it’s true.
The second issue is that wirebox needs to be using an isnull check instead if StructKeyExists. Can you put in a ticket for the second issue in our Ortus bug tracker?
I believe you are using an older version of WireBox/ColdBox. This was changed several minor fixes ago.
// If sent and a data CFC variables
if ( !isNull( arguments.config ) and isObject( arguments.config ) ) {
// Decorate our data CFC
arguments.config.getPropertyMixin = variables.injector.getUtil().getMixerUtil().getPropertyMixin;
// Execute the configuration
arguments.config.configure( this );
// Load the raw data DSL
loadDataDSL( arguments.config.getPropertyMixin( "wireBox", "variables", {} ) );
}