Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Tracer is not working when urlencryption in prconfig is enabled

SA-29650

Summary



Tracer is not working when we enable urlencryption <env name="initialization/urlencryption" value="true" /> in prconfig.xml files


Error Messages



getting error that "Connection ID is emply, please restart tracer"


Steps to Reproduce



Enable the following prconfig settings in environment : 

<env value="required" name="Initialization/SubmitObfuscatedURL"/> 
<env value="true" name="Initialization/Urlencryption"/>


Root Cause



This bug can be fixed by adding a check for the encryption of URL and also by getting connection id from the server side instead of depending on the param. 

In HTML Fragment TracerTraceGeneralScript, we need to add this variable - 

var Connection_ID="<pega:reference name="pxRequestor.pxClientConnection" mode="normal" />"; 

And also, 
Replace following first if block of initRunTracer() function -- 

// get the connection ID passed from the calling application. 
gDonotSendMoreDisconnect = false; 
var href = parent.document.location.href; 
var nPos = href.indexOf("ConnectionID="); 
if (nPos >= 0) 

connectionID = href.substring(nPos+13, href.length); 
nPos = connectionID.indexOf("&"); 
if (nPos > 0) 
connectionID = connectionID.substring(0, nPos); 

else 

nPos = href.indexOf("pzConnID="); 
if (nPos >= 0) 

connectionID = href.substring(nPos+13, href.length); 
nPos = connectionID.indexOf("&"); 
if (nPos > 0) 
connectionID = connectionID.substring(0, nPos); 



with these --- 

// get the connection ID passed from the calling application. 
gDonotSendMoreDisconnect = false; 
var href = parent.document.location.href; 
var nPos = href.indexOf("ConnectionID="); 
if (nPos >= 0) 

connectionID = href.substring(nPos+13, href.length); 
nPos = connectionID.indexOf("&"); 
if (nPos > 0) 
connectionID = connectionID.substring(0, nPos); 

else 

nPos = href.indexOf("pzConnID="); 
if (nPos >= 0) 

connectionID = href.substring(nPos+13, href.length); 
nPos = connectionID.indexOf("&"); 
if (nPos > 0) 
connectionID = connectionID.substring(0, nPos); 

else if(href.indexOf("pyactivitypzZZZ")>0 && connectionID=="") 

connectionID = Connection_ID; 

}


Resolution



Hfix-29995 has been installed and issue got resolved. User still has issues with remote tracing, which is being worked upon with a separate SR reference.
Suggest Edit

Published December 10, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us