DOMPurify import is incorrect

Description

Steps to Reproduce:

  1. Open Check in app

  2. Input barcode and click enter

Expected Results:

  • Check in app should work without error

Actual Results:

  • Check in app show error

 

image-20241112-173842.png

 

Summary: We need to correctly use dompurify, e.g.

import DOMPurify from 'dompurify'; DOMPurify.sanitize(...);

Details: Somehow, we settled on a use of dompurify that worked in v3.1.x but was never explicitly supported and that has been removed in v3.2.0. We need to convert the following files to the correct use:

$ grep -r dompurify ./src ./src/settings/RoutingListConfiguration/RoutingListConfigurationEmailTemplate.js:import { sanitize } from 'dompurify';

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2
  • 13 Nov 2024, 09:19 AM
  • 12 Nov 2024, 05:38 PM

Checklist

hide

Activity

Show:

Oleksandr Hrusha November 13, 2024 at 9:19 AM

Checked on snapshot, works as expected

 

2024-11-13_11h19_20.mp4

Dmitriy Litvinenko November 13, 2024 at 9:08 AM

Available for testing on https://folio-snapshot.dev.folio.org/

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Vega

Fix versions

Release

Ramsons (R2 2024) Bug Fix

RCA Group

Third party component integration

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created November 12, 2024 at 5:35 PM
Updated November 14, 2024 at 1:52 PM
Resolved November 13, 2024 at 4:23 PM
TestRail: Cases
TestRail: Runs

Flag notifications