Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): John Garrett / John Garrett ()
Created: 01/05/2017
Components: Event Gateway
Versions: 11.0
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: 11,0,11,301867 / NA
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Windows 10 64 bit
Vote Count: 0
Problem Description: The cgi.script_name value is incorrect when code is accessed via an Event Gateway. It's actually coming up as the correct string twice (e.g. "C:\inetpub\wwwroot\myFolder\gateway.cfcC:\inetpub\wwwroot\myFolder\gateway.cfc" instead of "C:\inetpub\wwwroot\myFolder\gateway.cfc"
Steps to Reproduce:
1) Create a gateway event cfc file with the following OnIncomingMessage() function:
public void function OnIncomingMessage(required struct gatewayEvent)
{
writeLog("cgi.script_name: #cgi.script_name#");
}
2) Create a gateway type. In my case, I had created a custom socket gateway with a custom Java class.
3) Create an event gateway instance of your gateway type with the CFC Path value being the path to the gateway cfc file created in step 1.
4) Send a gateway event to the gateway instance.
5) Check the value as output in the coldfusion-out.log
Actual Result: C:\inetpub\wwwroot\myFolder\gateway.cfcC:\inetpub\wwwroot\myFolder\gateway.cfc
Expected Result: C:\inetpub\wwwroot\myFolder\gateway.cfc
Any Workarounds: Manually check for duplicated string and remove second version of path from string.
Keywords: cgi, script_name, twice, double, duplicate
Attachments:
Comments: