Skip to Content
0

XSRF token error after upgrade to 7.5

Nov 30, 2017 at 09:33 AM

62

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Santarshi Samanta
Mar 30 at 11:34 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded