Issue
On clicking the pyWorkAttachmentIcon
control, the attachment preview does not display.
Symptoms and Impact
The attachment cannot be previewed.
Steps to Reproduce
- Log in to the Pega application as an operator whose username contains one or more special characters.
- Add an attachment to a case.
- Click the
pyWorkAttachmentIcon
control to preview the attachment.
Root Cause
This is a Pegasystems defect. The attachment preview does not display when the username of the operator (who added the attachment) has special characters.
Solution
Perform either of the following:
- For UI Kit based applications, update to Pega Platform™ 8.8.4.
- For Theme-Cosmos based applications, perform the following steps:
- In
pyAttachmentFeedDescription
, add after line 80:"uploadedBy = uploadedBy.replace("'", "\\'"); " //replace ("single quote", "backslash + backslash + single quote");
- In
pyWorkAttachmentIcon
, add after line 129:"uploadedBy = uploadedBy.replace("'", "\\'"); " //replace ("'", "backslash + backslash + '");
- In