Support Article
Links in the portal stop working after obfuscation enabled
SA-3201
Summary
After enabling obfuscation in a test environment we noticed that many custom application links in the portal stopped working.
Error Messages
"Obfuscation cannot be performed with a null or blank key"
Steps to Reproduce
1. Enabled obfuscation through dynamic system setting
2. Log into user portal
3. Click on an application link in the user portal
Root Cause
The root cause of this problem is defect/misconfiguration in the PRPC operating environment. URLs generated by custom Javascript were not passed through a SafeURL encoder and thus encountered errors after being encrypted.
Resolution
This issue is resolved through the following local change:
When generating URLs in custom javascript, rather than using this implementation:
var oTempURL = pxReqURI+"?pyActivity=ORG-FW-Application-Work.Document&DocName="+docname;
use this implementation:
var oTempURL = new SafeURL(ORG-FW-Application-Work.Document)
oTempURL.put("DocName",docname);
The safeURL function is necessary to create URLs in a way that the URL obfuscation algorithms can parse.Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.