Support Article
Unable to decrypt and display fields with special characters
Summary
Fields using OOTB TextEncrypted control cannot display correctly, and are displayed using HTML encoding.
Error Messages
Not Applicable
Steps to Reproduce
- Enable URL Encryption in prconfig.xml
- Use TextEncrypted Control.
- Fetch the values of TextEncrypted property values in Case summary (review harness - Provided with special characters).
Root Cause
Its a Pegasystems bug, the reported issue occurs when URL encryption is enabled and TextEncrypted control, Special charcters given the TextEncrypted control is not getting decrypted in review harness.
Resolution
Type: Local Change
Current:
if (tools.getAuthorizationHandle().haveAuthorization(tools, className, null, null, raw, page)) {
returnVal = StringUtils.crossScriptingFilter(tools.getPRCrypto().decryptPropertyValue(property.getStringValue()));
}
Local-change:
if (tools.getAuthorizationHandle().haveAuthorization(tools, className, null, null, raw, page)) {
boolean escapeQuote = tools.getParamAsBoolean(ImmutablePropertyInfo.TYPE_TRUEFALSE,"EscapeQuote");
returnVal = tools.getPRCrypto().decryptPropertyValue(property.getStringValue());
}
Published November 22, 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.