[coldbox-4.2] Object in RC + async interceptors

Hello All,

My team is running into a problem where we are unable to use async interceptors if there exists any object in RC at the time of the interceptor announcement. We know that we can’t pass objects in the InterceptorData argument of the Interceptor announcement, but it seems the RC is automatically passed to the interceptor as well.

Any advice about what to do in this situation? Is this a known issue or a limitation of the framework?

Thanks in advance,

Andrew Matasek

Are you getting an error? What happens when you try?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

Hey Brad,

The request is returning a 500 server error and below is the first 200 lines of the stack trace from the coldfusion-error.log file.

Ahh, so I’m guessing we pass the request collection into the cfthread call that wraps the async interceptor. I’m not sure if there’s a quick work around for this since CFML duplicates all variables that it passes into a thread. It would be possible for the thread to retrieve the rc from the request service itself, but of course, that assumes the parent thread hasn’t already completed since the rc is request-scoped.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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