tracker issue : CF-4198790

select a category, or use search below
(searches all categories and all time range)
Title:

code outputted twice

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Aaron Shurmer / Aaron Shurmer ()

Created: 05/29/2017

Components: Web Socket

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: latest patched /

Priority/Frequency: Normal /

Locale/System: / Win All

Vote Count: 0

Problem Description:
all socket code is placed twice into the head of the page from the <cfwebsocket> tag. Both the initial code block, and the second setup block

FIRST DOUBLE UP
________________________________________

<head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='https://tracker.adobe.com/cf_scripts/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath="";
_cf_ajaxscriptsrc="/cf_scripts/scripts/ajax";
_cf_jsonprefix='//';
_cf_websocket_port=8577;
_cf_flash_policy_port=1243;
_cf_websocket_ssl_port=8543;
_cf_clientid='';/* ]]> */</script><script type="text/javascript" src="/cf_scripts/scripts/ajax/messages/cfmessage.js"></script>
<script type="text/javascript" src="/cf_scripts/scripts/ajax/package/cfajax.js"></script>
<script type="text/javascript" src="/cf_scripts/scripts/ajax/package/cfwebsocketCore.js"></script>
<script type="text/javascript" src="/cf_scripts/scripts/ajax/package/cfwebsocketChannel.js"></script>
<script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='https://tracker.adobe.com/cf_scripts/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath="";
_cf_ajaxscriptsrc="/cf_scripts/scripts/ajax";
_cf_jsonprefix='//';
_cf_websocket_port=8577;
_cf_flash_policy_port=1243;
_cf_websocket_ssl_port=8543;
_cf_clientid='';/* ]]> */</script><script type="text/javascript" src="/cf_scripts/scripts/ajax/messages/cfmessage.js"></script> <script type="text/javascript" src="/cf_scripts/scripts/ajax/package/cfajax.js"></script> <script type="text/javascript" src="/cf_scripts/scripts/ajax/package/cfwebsocketCore.js"></script> <script type="text/javascript" src="/cf_scripts/scripts/ajax/package/cfwebsocketChannel.js"></script>


SECOND DOUBLE UP
____________________________________________
<script type="text/javascript">/* <![CDATA[ */
	ColdFusion.Ajax.importTag('CFWEBSOCKET');
/* ]]> */</script> <script type="text/javascript">/* <![CDATA[ */
	var econnecxWebSocket;
	_cf_websockets_init_1561963678103450=function()
	{
		econnecxWebSocket = ColdFusion.WebSocket.init('econnecxWebSocket','econnecx',false,'416CC9A44D3D931336DDE7111CDF470F','',function( messageobj ) { webSocketManager.msgHandler( messageobj ); },function( ) { webSocketManager.connectionOpened( ); },function( ) { webSocketManager.timedCheckWebsocket( 'onClose' ); },function( error1, error2 ) { webSocketManager.onError( error1, error2 ); },'/index.cfm',true);
	};ColdFusion.Event.registerOnLoad(_cf_websockets_init_1561963678103450);
/* ]]> */</script> 
<script type="text/javascript">/* <![CDATA[ */
	ColdFusion.Ajax.importTag('CFWEBSOCKET');
/* ]]> */</script>

<script type="text/javascript">/* <![CDATA[ */
	var econnecxWebSocket;
	_cf_websockets_init_1561963678103450=function()
	{
		econnecxWebSocket = ColdFusion.WebSocket.init('econnecxWebSocket','econnecx',false,'416CC9A44D3D931336DDE7111CDF470F','',function( messageobj ) { webSocketManager.msgHandler( messageobj ); },function( ) { webSocketManager.connectionOpened( ); },function( ) { webSocketManager.timedCheckWebsocket( 'onClose' ); },function( error1, error2 ) { webSocketManager.onError( error1, error2 ); },'/index.cfm',true);
	};ColdFusion.Event.registerOnLoad(_cf_websockets_init_1561963678103450);
/* ]]> */</script>

Attachments:

Comments:

interesting, this seems to be due to onRequestEnd code that messes with the output stream the following code creates the issue, so wouldn't surprise me of other things suffered the same problem. local.string = fastHtmlMinify( GetPageContext().getCFOutput().getString() ); GetPageContext().getCFOutput().clear(); writeOutput( local.string );
Comment by Aaron S.
639 | May 29, 2017 02:11:00 AM GMT
Hi Aaron, Can you please share a test case where you are seeing this issue? Do share the Application.cfc along with the test case. I am unable to repro this issue in my end and your code will help in reproducing the issue. Thanks, Kailash
Comment by Kailash B.
640 | May 30, 2017 05:58:36 AM GMT
Hi Aaron, Can you please answer the questions asked in the previous comment? That should help us fix this issue Thanks, Kailash
Comment by Kailash B.
641 | September 11, 2017 04:55:48 AM GMT
Couldn't repro the issue which the customer had. Will reopen once the customer comes back with the required information asked.
Comment by Kailash B.
642 | September 17, 2017 06:10:14 PM GMT