Skip to main content

KI-77

[Lightning Web Security] Enhanced document previewer does not render files correctly

Key/Summary

KI-77 [Lightning Web Security] Enhanced document previewer does not render files correctly

Status

Done/Canceled

Created

02/08/2022

Updated

09/01/2022

Description

The enhanced document viewer does not render files correctly when Lightning Web Security is enabled in your environment.

Impacted Capabilities

Content Management

Affected Apps

Medical Information Cloud - Lightning

Affects Versions

MIC V10, MIC V11, PUBS V1

Fix Version

Steps to Reproduce

  1. In the Quick Find box in Setup, search for and select [Session Settings].

  2. In the Lightning Web Security section, check the [Use Lightning Web Security for Lightning web components] checkbox field, and then click [Save].

  3. Navigate to an existing Document (mvn__CM_Document__c) record with a PDF file. The enhanced document previewer does not render the PDF correctly.

Workaround

Disable Lightning Web Security. To disable it:

  1. In the Quick Find box in Setup, search for and select [Session Settings].

  2. In the Lightning Web Security section, uncheck the [Use Lightning Web Security for Lightning web components] checkbox field.

  3. Click [Save].