[Coldbox 3.x] Railo 4.1.2 and full null support

Does anyone have the same Problem, when turning on full null support under railo? When switching to partial support everything works as expected

Do you know which interceptor it is failing on?

Hi,

thanks for the fast answer. The only interceptor defined in this app is the Coldbox SES Interceptor. I am not using any own Interceptors.

Meanwhile I found this Bug Report

https://ortussolutions.atlassian.net/browse/COLDBOX-202

Are there any news on this?

Best Regards

Yeah, I would say it is related. Maybe Brad or Luis can elaborate more on it.

We do not currently support full nulls or the strict scope mode in Railo. It is, however, on our roadmap to try and implement for ColdBox 4.0 (along with going all-script).

The null support changes how structKeyExist() looks for missing keys since now they exist, just with a “null” value. We would more than welcome pull requests from people wanting to help contribute fixes for null support and strict scope mode.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

ColdBox does support Railo strict scope, I patched code-base few months ago. Full null is not supported yet.

That’s good news Sana. Do you have a link to that commit/pull request? I didn’t know that had happened.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Hi Brad,

thanks for your answer and i’m willing to help, since coldbox has become our default framework for new apps. But i cannot relate my problem with the structkeyExists function, because it says that the variable instance cannot be found, but it is created as struct in the init method of wirebox. The explanation i have is, that the init-method is not called.

Are there more information on what we have to change in coldbox for supporting full null or do we need to investigate. I will definitely help, but first i have to resolve this problem.

Best Regards

Ok, it is related with structKeyExists… I was digging in the InterceptorService :slight_smile:

So, what is the suggested way to for tests with structKeyExists?

maybe:

if(structKeyExists && !isNUll) ?

Hi Brad,

any recommendations on how to overcome the problem? I want to help, but i also want to stick to the conventions of the coldbox dev team, so i can submit pull requests.

Best Regards

I would recommend watching this webinar on creating pull requests:
http://www.coldbox.org/media/cbdw2013#1_4

Then just start digging through the core and fixing any issues you come across to get ColdBox running. Then submit a pull request for your changes :slight_smile:

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com