[ColdBox 4.3.0] CGI.script_name Issue In coldbox.system.remote.ColdboxProxy

Enter code here...

When calling a event gateway I’m receiving an error as follows.

Could not find the ColdFusion component or interface :\web sites[fileorg.wamdt.com](http://fileorg.wamdt.com/)\web\remote\OCRQueueProcess.cfcD:\web sites[fileorg.wamdt.com](http://fileorg.wamdt.com/)\web\remote\OCRQueueProcess.

So I decided to do a data dump for CGI in the function selfAutowire located in coldbox.system.remote.ColdboxProxy and I got the following result. Any idea why the CGI.script_name is prepending the ColdFusion 11 webroot then the application webroot is appended to it? The gateway was working perfectly fine until we upgraded to ColdBox 4.3.0. Any help would be much appreciated.

ColdBox doesn’t touch the CGI scope. That all comes from the web server. Did you install a ColdFusion update recently? Perhaps the IIS connectors need re-added?

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

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

I’m on CF11 with the latest update. The CGI.script_name is fine when viewing the web page. When I call the gateway which is located at remote/[gateway file].cfc. I even removed the connector and reconnected it but still the same result.

I know ColdBox does not touch the CGI scope but I did a data dump in coldbox.system.remote.ColdboxProxy as follows.

`

var script_name = cgi.script_name; var mailerService = new mail(); savecontent variable="mailBody"{ writeDump(cgi); } mailerService.setTo('jsjung@wamdevtech.com'); mailerService.setFrom('ttms@dealerppc.com'); mailerService.setSubject("ColdboxProxy #Now()#"); mailerService.setType("html"); mailerService.send(body=mailBody); abort;

`

However, I would get the following in CF_TEMPLATE_PATH. The correct path is appending to the ColdFusion webroot path.

`

CF_TEMPLATE_PATH = D:\ColdFusion11\cfusion\wwwroot\D:\web sites[cdl.divvythat.com](http://cdl.divvythat.com/)\web\remote\Gateway.cfc

`

This only happens when I call an event gateways within the CFC file that is being called. The CFC is located under the /remote directory. Any idea why the CGI is being modified with the CF webroot?

Sounds like a bug in Adobe ColdFusion. I would enter a ticket in their bug tracker for this.

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

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

Seems odd this issue started to occur after I upgraded to ColdBox 4. This issue didn’t occur on ColdBox 3.8.