Support Article

Security violation attempting to access requestor

SA-29102

Summary



User is getting below error message in their Pega application sporadically. Pega application is launched from a different application.

Message
Security violation attempting to access requestor

Operator ID
Unauthenticated or not available

Requestor ID
No ID available

Timestamp
Thu Sep 07 10:07:33 GMT 2016

Engine Version
PegaRULES 7.10 ML5 (coreAssemblyCached_715_230_filtered)


Error Messages



"Security violation attempting to access requestor" in screen. 


Steps to Reproduce



Sporadic in nature.


Root Cause



A defect or configuration issue in the operating environment. When the user close the browser, Pega session is not logged out. If user click the logoff everything works as expected. 

Resolution



Perform the following local-change step:

Add below code as part of the portal header as non-auto generated section, which logoff the user on closing the browser.

 

pega.util.Event.removeListener(window,"beforeunload",pega.u.d.harnessBeforeUnload);

window.onbeforeunload=function()

{

var safeURL=SafeURL_createFromURL(pega.u.d.url);

safeURL.put('pyActivity','Code-Security.LogOff');

 

var oXmlHttp;

if(typeof XMLHttpRequest !='undefined')

{

oXmlHttp= new XMLHttpRequest();

}

else{

oXmlHttp - new ActiveXObject("Microsoft.XMLHTTP");

}

oXmlHttp.open("GET",safeURL.toURL(),false);

oXmlHttp.send();

}


 

Published October 12, 2016 - Updated October 20, 2016


100% found this useful

Have a question? Get answers now.

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