on 11-30-2017 9:33 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.