Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to decrypt and display fields with special characters

SA-30604

Summary



Fields using OOTB TextEncrypted control cannot display correctly, and are displayed using HTML encoding.


Error Messages



Not Applicable


Steps to Reproduce

  1. Enable URL Encryption in prconfig.xml
  2. Use TextEncrypted Control. 
  3. 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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice