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

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 21, 2016 - Updated October 8, 2020

Was this useful?

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.

Did you find this content helpful?

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