cancel
Showing results for 
Search instead for 
Did you mean: 

XSRF token error after upgrade to 7.5

Former Member
0 Kudos

Hi,

We have recently upgraded to portal 7.5. We have a scenario , where the user can save his favourites in the portal. We have a custom application where we add the favourites in KM. It was working fine in previous versions but now we are facing issue as "

XSRF Token incorrect or missing.

No xsrf token parameter is found in the request! request[com.sapportals.wcm.portal.util.PortalServletRequestWrapper@42d72514]."

Below is the code we are using:

function AddToPortalFavorites(target , title, mode, message)

{

try

{

var obj = EPCM.getSAPTop().gHistoryFrameworkObj.GetActiveTrackingEntryValue();

var context = obj.context;

if(! target)

{

target = obj.getUrl();

title = GetUnescapedTitle(obj.title);

}

var url = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.remote?ServiceType=PortalFavorites&";

url += ("NavigationTarget=" + getEscapedTargetUrl(target));

url += ("&Title=" + encodeURIComponent(title));

url += ("&Mode=" + mode);

if (context != null && context.length > 0)

url = url + "&Context="+encodeURI(context);

var favIFrame = document.getElementById("favoritesIframe");

if(! favIFrame)

{

var favIFrame = document.createElement("IFRAME");

favIFrame.style.visibility = "hidden";

favIFrame.width=0;

favIFrame.height=0;

favIFrame.id = "favoritesIframe";

if(EPCM.getUAType() == EPCM.MSIE)//using IE event model

favIFrame.attachEvent("onload" , favoritesFinished);

else// using W3C DOM:

favIFrame.onload = favoritesFinished;

favIFrame.src=url;

favIFrame = document.body.appendChild(favIFrame);

}

favIFrame.src = url;

alert(message);

}

catch(e){}

}

How to fix this issue?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member189925
Active Contributor
0 Kudos

Hi

Since the issue is seen after the upgrade to portal 7.5, I would suggest you to refer the below KBA first.

2503291 - Issues after upgrading Enterprise Portal to 7.3x / 7.4 / 7.5

Additionally refer the troubleshooting guide for the steps/checks after SAP Enterprise Portal Upgrade

https://blogs.sap.com/2016/09/08/troubleshooting-guide-after-sap-enterprise-portal-upgrade/


Regards

Santarshi Samanta