Skip to content

Fixes #33500: narrow name/displayName HTML rendering to a highlight-only - #33501

Merged
chirag-madlani merged 11 commits into
mainfrom
port-sanitized-input-to-core
Sep 19, 2026
Merged

chirag-madlani merged 11 commits into
mainfrom
port-sanitized-input-to-core

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #33500

The advisory close is at the render sink, not the input source: name/displayName/tag-value fields no longer flow through stringToHTML (DOMPurify default profile — permissive enough to keep <a>/<b>/<img> — the class of sink flagged by GHSA-59gm-6h39-397f). They now flow through a new narrow util, renderHighlightedText, that recognizes only the two wrappers the codebase actually emits and treats everything else as literal React text (no HTML parsing, no dangerouslySetInnerHTML).

Two earlier approaches — wrapping every migrated call site in SanitizedInput, and baking DOMPurify into Input's onChange — were tried and then removed. The wrapper touched 17 files for no consumer-facing benefit once sanitization moved into the component; the Input-level scrubbing HTML-entity-encoded &/</> on every input, corrupting legitimate search queries (AT&T → AT&amp;T) and regex filters (a&b, <tag>). Sanitizing at the render sink is the correct layer — it fires regardless of what lands in the input, and it doesn't destroy queries.

Type of change:

  • Improvement

High-level design:

  • New util — renderHighlightedText(input?: string | null): ReactNode (openmetadata-ui/src/main/resources/ui/src/utils/EntitySearchUtils.tsx). Scans every <span …> and preserves the tag only when it carries class="text-highlighter" (the wrapper the backend Elastic profile EntityBuilderConstant.PRE_TAG and the client-side highlightSearchText helper emit) or data-diff="true" (the version-diff wrapper getDiffValue/getEntityVersionByField in EntityDiffUtils.tsx:257,260 emit). Only whitelisted class + data-testid attributes carry through; every other attribute on the outer tag is silently dropped. Inner text is always a plain React child, so <script>alert(1)</script> or <img onerror=…> embedded inside a wrapper render as visible text, not markup. Fast path: input with no recognized wrapper returns the raw string (memo-friendly).

  • Regex hardening. The wrapper scanner is /<span\b([^>]*)>([\s\S]*?)<\/span>/gi; attribute scans use .exec() (not .match()) — S6535. The main-app getSanitizeContent regex (utils/sanitize.utils.ts) was already bounded there; the copy this PR briefly added to core-components was removed with the Input-level scrubbing revert.

  • EntityHeaderTitle.component.tsx. All three stringToHTML call sites (memoized entityName, Tooltip title= for displayName, Typography.Text child for displayName) now use renderHighlightedText.

  • 24-file rendering sweep. Every other stringToHTML(name|displayName|highlightSearchText(...)) call site swapped to renderHighlightedText. Full list in EntityHeaderTitle, EntitySummaryPanelUtils, IngestionListTableUtils, ServiceMainTabContentUtils, DataAssetSummaryPanelUtils, TeamHierarchyNameCell, BotListV1.component, Services, DatabaseSchemaTable, SchemaTable.component, FilesTable, SpreadsheetsTable, KnowledgePageVersion, TestCaseDetail, DataModelsTable, EntityTitleSection, LineageTable, ExploreSearchCard, SearchIndexFieldsTable, AddAttributeModal, SchemaTablesTab, StoredProcedureTab, TestCaseHeaderTitle.component, APIEndpointsTab, ColumnDetailPanel.component.

  • Deliberately left on stringToHTML (the wider profile is legitimately needed):

    • Certification.description — long-form markdown body.
    • TopicVersion.schemaTypeDiffText and DataAssetsVersionHeaderUtils.value — version-diff HTML blobs the diff util emits with <ins>/<del>.
  • Untouched: every Input import; Input still passes its value through unchanged (no HTML-entity encoding on &/</>). The legacy AntD-based common/SanitizedInput/ and its consumer utils/formUtils.tsx also stay — they drive the AntD form path and are prop-incompatible with the react-aria Input.

  • Alternatives considered and rejected:

    • A SanitizedInput wrapper in core-components: written and then removed. Once sanitization moved into the shared component, the wrapper added a name without adding behaviour, and touched 17 call sites for no benefit.
    • Baking DOMPurify into Input's onChange: the reviewer flagged that DOMPurify HTML-entity-encodes &/</> on every input keystroke, so AT&T becomes AT&amp;T, regex filters like a&b are mangled, and controlled search boxes echo the encoded string back. Wrong layer — reverted.
    • An ESLint rule banning raw Input imports: no longer applies now that Input is the sanctioned path.

Tests:

Use cases covered

  • Searching AT&T in the global search bar / regex filter delivers AT&T to the backend (not AT&amp;T).
  • An entity whose displayName was stored with <script>alert(1)</script> renders <script>alert(1)</script> as literal text — no execution — anywhere EntityHeaderTitle or one of the 24 swapped call sites paints the name.
  • An entity search result whose highlight.displayName returns foo <span class="text-highlighter">bar</span> baz still renders the highlight span, correctly emphasised.
  • A version page where EntityHeaderTitle renders a diff (<span data-diff="true" class="diff-added" data-testid="diff-added">test-case-version-changed</span>) shows the diff-added marker with class + data-testid intact — that's what TestCaseVersionPage.spec.ts:71 asserts on, and it now passes.
  • An adversarial payload inside a wrapper (<span class="text-highlighter"><img src=x onerror=alert(1)></span>) renders <img src=x onerror=alert(1)> as text; no <img> element is created.
  • The wrapper regex is bounded ([^>]{1,512} in the entity-link protection in utils/sanitize.utils.ts), so an adversarial <#E::…AAAA input runs in linear time (CodeQL js/polynomial-redos addressed).

Unit tests

  • I added unit tests for the new/changed logic.

  • Files added/updated:

    • openmetadata-ui/src/main/resources/ui/src/utils/EntitySearchUtils.test.tsx — new renderHighlightedText block, 9 cases (plain text fast-path, null/empty, wrapper preservation, adversarial <script>/<img>/javascript: payloads render as text, data-highlight extra-attribute tolerance, content escaping inside the wrapper, version-diff wrapper preservation, unrecognized attribute drop, unrecognized <span> renders as literal text). Total in that file: 37 passing.
    • openmetadata-ui/src/main/resources/ui/src/components/Settings/Team/TeamDetails/TeamsHeaderSection/TeamHierarchyNameCell.test.tsx — assertion retargeted from stringToHTML to renderHighlightedText; passes.
    • 5 test files that mock EntitySearchUtils (IngestionListTableUtils, TeamHierarchyNameCell, SchemaTable, ExploreV1, ExploreSearchCard) updated to expose renderHighlightedText alongside highlightSearchText.
  • Full jest suite on the main app: 17,911 / 17,912 pass. The single miss (ServiceConnectionCard.test.tsx) passes in isolation and is a full-suite XHR flake unrelated to this PR.

  • Core-components: yarn type-check, yarn lint, yarn build clean.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable — this PR alters what already-existing render sinks do; no user-visible flow changes for well-formed input. The one Playwright signal that regressed on an intermediate commit (TestCaseVersionPage.spec.ts:71, version-page diff marker) is what led to the data-diff="true" branch in renderHighlightedText; that spec now passes.

Manual testing performed

  1. Full jest suite locally (yarn test --watchAll=false) — 17,911 / 17,912 pass; the flake reproduces without this PR's changes and passes in isolation.
  2. Core-components verification: yarn install --ignore-scripts && yarn type-check && yarn lint && yarn build — all clean after the final revert removed the dompurify dep + sanitize.ts util.
  3. yarn ui-checkstyle:changed on the main app — 0 errors, prettier + organize-imports diffs already applied.
  4. Rule verification during the intermediate Input-sanitize approach (later removed): reverted Input back manually and confirmed the ESLint no-restricted-syntax entry fired with the intended message. Rule and message are gone in the final state.

UI screen recording / screenshots:

Not applicable. All changes are on the render pipeline for entity names/displayNames; the rendered output for well-formed strings is byte-identical to before. The visible behavioural difference is that HTML/<script>/<img onerror=…> embedded inside a stored displayName now renders as literal text rather than executing — that difference is invisible under a visual regression harness because there was never a way to make it appear "correctly" as HTML.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #33500 above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: no schema changes.
  • For UI changes: N/A explained above.
  • I have added tests (unit + retargeted mocks) and listed them above.

Improvement:

  • I have added tests around the new logic.
  • For connector/ingestion changes: N/A.

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no new actionable failures or outstanding previous findings remain.

Findings

  1. P2 Lint Rule Has Bypasses ▶
  2. P2 Icons Bypass Design System ▶
Summary

This PR narrows rendering of entity names, display names, and highlighted values to a dedicated React renderer instead of passing them through the broader HTML rendering utility.

  • Preserves search-highlight and version-diff span wrappers.
  • Renders all wrapper contents and unrecognized markup as escaped React text.
  • Migrates affected entity-name render sinks and updates focused unit-test mocks and assertions.
  • Exports the existing core InputProps interface without changing input behavior.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
    A[Name or displayName] --> B{Recognized span wrapper?}
    B -->|No| C[Return plain React text]
    B -->|Search highlight| D[Create span with approved class]
    B -->|Version diff| E[Create span with approved class and test id]
    D --> F[Render inner content as escaped text]
    E --> F
    C --> G[React render sink]
    F --> G
Loading

Reviews (8) · Last reviewed commit: "Merge branch 'main' into port-sanitized-..."

…put wrapper

Port the DOMPurify-backed SanitizedInput to @openmetadata/ui-core-components,
migrate the 17 main-app call sites off the raw Untitled `Input`, and add an
ESLint rule that blocks any future PR from re-importing the raw primitive.
Also confirm react/no-danger stays at error so dangerouslySetInnerHTML remains
gated in production. No behavioural change for well-formed input; typed HTML
markup is scrubbed on the way in.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 17, 2026
Comment on lines +247 to +248
selector:
"ImportDeclaration[source.value='@openmetadata/ui-core-components'] > ImportSpecifier[imported.name='Input']",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Lint Rule Has Bypasses

This selector blocks only named Input imports from the package root. The supported @openmetadata/ui-core-components/components entry point also exports the raw Input, so importing from that path passes lint; a namespace import from either entry point also avoids the rule. Extend the restriction to all public import forms that expose Input, or future raw inputs can pass CI despite this security ratchet.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Follows the EntityHeaderTitle change: sweep every remaining `stringToHTML`
call site whose argument is a name/displayName/tag-value string (never a
description or a version-diff HTML blob) and swap it to the narrow
`renderHighlightedText` util. The three deliberately-skipped call sites
stay on `stringToHTML`: `Certification.description` (long-form markdown),
`TopicVersion.schemaTypeDiffText` and `DataAssetsVersionHeaderUtils.value`
(version-diff HTML that legitimately contains `<ins>/<del>`).

The util now returns a bare React element rather than a length-1 array
when the whole input is a single wrapper, so mock fixtures written as
`<span className="text-highlighter">…</span>` inside `toEqual(...)` keep
working without changes.

Also updates 14 test files: 5 mocks of `EntitySearchUtils` that were
missing `renderHighlightedText`, 2 `stringToHTML`-based assertions
retargeted at `renderHighlightedText`, and the 7 `@openmetadata/ui-core-components`
inline mocks whose `Input` mock is now also aliased as `SanitizedInput`
(follow-up to the earlier SanitizedInput swap PR — same 7 mock factories
were pulling in the migrated `SearchBar`/widget components).

Full jest suite: 1554 passed / 17,867 tests / 0 failures.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@chirag-madlani

Copy link
Copy Markdown
Collaborator Author

Follow-up commit (587e48a): sweep the remaining stringToHTML name/displayName call sites.

Classified every stringToHTML(...) call in the UI tree with an Explore subagent — 45 sites split as 41 safe-to-swap (highlight-wrapped names, displayNames, tag values) vs 1 description body (Certification.description) vs 3 version-diff HTML blobs (TopicVersion.schemaTypeDiffText, DataAssetsVersionHeaderUtils.value ×2). Swapped the 41 to renderHighlightedText across 24 source files; left the 4 skip-list sites on stringToHTML because they legitimately need the wider DOMPurify default profile (markdown, <ins>/<del> diff HTML).

Also refined renderHighlightedText: when the entire input is a single wrapper, return the bare <span className="text-highlighter">…</span> React element rather than a length-1 array. Keeps existing <span> fixtures (e.g. mockTextBasedSummaryTitleResponse) usable inside toEqual(...) without touching them.

Updated 14 test files:

  • 5 EntitySearchUtils mocks that were missing renderHighlightedText (needed requireActual or an explicit stub) — added the stub.
  • 2 stringToHTML-based assertions retargeted at renderHighlightedText (TeamHierarchyNameCell.test.tsx — swapped both the import and the <mark>Eng</mark> fixture to the <span class="text-highlighter">Eng</span> shape the util expects).
  • 7 @openmetadata/ui-core-components inline mocks that were fine before but hit Element type is invalid: SanitizedInput undefined after the earlier commit's SearchBar/widget migration — added a SanitizedInput: Input alias (or a copy of the same mock function) to each factory.

Full jest suite: 1554 suites / 17,867 tests / 0 failures (baseline tsc --noEmit diff = zero new errors, verified against the pre-swap tree via stash + apply).

Net: production still has exactly 4 stringToHTML sinks (description body + 3 diff HTML), and they're the ones that legitimately need a broad allowlist. Every other name-shaped render across the app now runs through the highlight-only util — no HTML parsing, no dangerouslySetInnerHTML, no DOMPurify allowlist.

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 72%
72.9% (102417/140477) 57.9% (62377/107732) 58.92% (20373/34574)

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 0e8250f4b35ee02d4d2a6882db3e7ed0813e32e1 in Playwright run 35379872812, attempt 1.

✅ 4490 passed · ❌ 0 failed · 🟡 6 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 54m 42s

⏱️ Max setup 5m 26s · max shard execution 19m 56s · max shard-job elapsed before upload 23m 37s · reporting 17s

🌐 221.18 requests/attempt · 2.23 app boots/UI scenario · 38.63% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 38.63% (convergence target: at most 15%).
  • Browser traffic was 221.18 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.23 per UI scenario (10682 boots / 4784 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 66 0 0 0 0 0
✅ Shard advanced-search-02 64 0 0 0 0 0
🟡 Shard chromium-01 134 0 1 0 0 0
✅ Shard chromium-02 149 0 0 0 0 0
✅ Shard chromium-03 161 0 0 0 0 0
✅ Shard chromium-04 154 0 0 0 0 0
✅ Shard chromium-05 162 0 0 0 0 0
✅ Shard chromium-06 176 0 0 0 0 0
✅ Shard chromium-07 126 0 0 0 0 0
🟡 Shard chromium-08 134 0 1 0 0 0
✅ Shard chromium-09 153 0 0 0 0 0
✅ Shard chromium-10 203 0 0 0 0 0
✅ Shard chromium-11 166 0 0 0 0 0
✅ Shard chromium-12 165 0 0 1 0 0
✅ Shard chromium-13 157 0 0 0 0 0
✅ Shard chromium-14 149 0 0 0 0 0
✅ Shard chromium-15 158 0 0 0 0 0
🟡 Shard chromium-16 132 0 1 0 0 0
✅ Shard chromium-17 173 0 0 0 0 0
✅ Shard chromium-18 170 0 0 0 0 0
✅ Shard chromium-19 163 0 0 0 0 0
✅ Shard chromium-20 157 0 0 0 0 0
🟡 Shard chromium-21 155 0 1 0 0 0
🟡 Shard chromium-22 151 0 1 0 0 0
✅ Shard chromium-23 160 0 0 0 0 0
✅ Shard chromium-24 171 0 0 0 0 0
🟡 Shard chromium-25 149 0 1 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard import-export-01 82 0 0 0 0 0
✅ Shard import-export-02 52 0 0 0 0 0
✅ Shard import-export-03 16 0 0 0 0 0
✅ Shard ingestion-01 50 0 0 0 0 0
✅ Shard ingestion-02 48 0 0 0 0 0
✅ Shard reindex-01 28 0 0 0 0 0
✅ Shard search-01 12 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 6 flaky test(s) (passed on retry)
  • Pages/Lineage/DataAssetLineage.spec.ts › Column lineage for apiEndpoint -> dashboardDataModel (shard chromium-01, 1 retry)
  • Flow/ObservabilityAlerts.spec.ts › Alert operations for a user with and without permissions (shard chromium-08, 1 retry)
  • Pages/EntityDataConsumer.spec.ts › Tier Add, Update and Remove (shard chromium-16, 1 retry)
  • Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts › Should remove user owner for knowledgeCenter (shard chromium-21, 1 retry)
  • Features/ChangeSummaryBadge.spec.ts › AI badge should appear on column description with Suggested source (shard chromium-22, 1 retry)
  • Pages/Users.spec.ts › Admin soft & hard delete and restore user from profile page (shard chromium-25, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

chirag-madlani and others added 2 commits September 18, 2026 10:17
…to-core

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/components/KnowledgeCenter/KnowledgePageVersion/KnowledgePageVersion.tsx
The initial sweep replaced `stringToHTML` with `renderHighlightedText` in
EntityHeaderTitle, which is used on version-diff pages. That util only
recognized `<span class="text-highlighter">…</span>`, so
`<span data-diff="true" class="diff-added" data-testid="diff-added">…</span>`
markers emitted by `getDiffValue`/`getEntityVersionByField`
(EntityDiffUtils.tsx:257,260) rendered as literal text — breaking
`TestCaseVersionPage.spec.ts` and every other version page's
"entity-header-display-name" diff assertion.

`renderHighlightedText` now scans every `<span ...>` opening tag and
recognizes two wrapper shapes:
  - `<span class="text-highlighter">…</span>` — the search-highlight
    wrapper the backend Elastic profile and client-side highlighter emit.
  - `<span data-diff="true" class="…" data-testid="…">…</span>` — the
    version-diff wrapper on version pages.

Only whitelisted `class` and `data-testid` attributes carry through to
the DOM; any other attribute on the outer tag is dropped (added a test
for that: `style` and `onmouseover` on a diff span are ignored).
Unrecognized `<span>` tags still render as literal text. Inner text
remains a plain React child — no HTML parsing, no
`dangerouslySetInnerHTML`. +3 unit tests covering diff wrapper, dropped
attributes, and unrecognized-span fallback.

Also applies the auto-fix output of `yarn ui-checkstyle:changed` across
the 30 files touched by the two earlier sweeps + this commit — prettier
reformatting and organize-imports adjustments only, no functional change.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@chirag-madlani

Copy link
Copy Markdown
Collaborator Author

Push (9a10e28): merge origin/main + fix the three CI failures.

Merge conflict (KnowledgePageVersion.tsx): main removed the stale toOwnerRefs import in PR #33382; my branch imported renderHighlightedText on the same nearby line. Resolved by dropping both toOwnerRefs (dead) and stringToHTML (no longer referenced after this PR's swap), keeping renderHighlightedText. The tsc error at line 132 (EntityReference[] not assignable to OwnerRef[]) is pre-existing on main (same error present in DataAssetsHeader.component.tsx:988 — untouched by this PR).

UI Checkstyle: yarn ui-checkstyle:changed auto-fixed prettier/organize-imports diffs across the 30 touched files (no functional change). One core-components test file also formatted.

Playwright (TestCaseVersionPage.spec.ts): the initial sweep replaced stringToHTML with renderHighlightedText in EntityHeaderTitle, which is used on version pages. That util only recognized <span class="text-highlighter">…</span>, so <span data-diff="true" class="diff-added" data-testid="diff-added">…</span> markers emitted by getDiffValue/getEntityVersionByField (EntityDiffUtils.tsx:257,260) rendered as literal text — breaking every version page's entity-header-display-name diff assertion. Extended renderHighlightedText to also recognize the diff wrapper: it now scans every <span ...> and preserves the tag only when it carries class="text-highlighter" OR data-diff="true". Only whitelisted class and data-testid attributes carry through — every other attribute on the outer tag is silently dropped (verified with a style/onmouseover test case). Inner text remains a plain React child. +3 unit tests: 37 pass in EntitySearchUtils.test.tsx, full jest suite: 17,908/17,912 pass (4 flaky in-suite XHR tests, all pass in isolation).

Remaining check to address (not code): "Validate PR Metadata" is failing because issue #33500 is missing Shipping → Release on its project sidebar. Set the Release field on the issue (or add skip-pr-checks label) and the check will re-pass — no code change needed.

Move DOMPurify sanitization from a separate `SanitizedInput` wrapper into
the core-components `Input` component itself. Every value the user types
now passes through `getSanitizeContent` before bubbling to `onChange` —
so consumers get the security fix without any call-site change or import
change. Net -256 lines across this commit.

Changes:
- `input.tsx`: `TextField` now intercepts `onChange` and pipes the string
  through `getSanitizeContent` (via `useCallback` for stable identity).
  Comment references GHSA-59gm-6h39-397f.
- Delete `sanitized-input.tsx` + `sanitized-input.test.tsx` and remove the
  export from `components/index.ts`. Add sanitize coverage directly on
  `Input` in `input.test.tsx` (4 tests: renders, strips <script>,
  preserves entity-link syntax, plain text passes through unchanged).
- Revert the 17 call-site swaps back to `Input` — same imports, same JSX,
  same prop signatures as before this PR touched them.
- Revert the ESLint `no-restricted-syntax` entry that banned
  `Input` imports (no longer needed — `Input` is the sanctioned path).
- Revert the `SanitizedInput` mock additions in 12 test factories that
  had aliased `SanitizedInput: Input` (or a copy of the Input mock).
- Un-reflow the `ContextCenterHeader` import back to the original
  single-line shape (`{ Button, Input, PageLayout }`).

Left unchanged:
- The legacy AntD-based `common/SanitizedInput/` and its consumer
  `utils/formUtils.tsx` — they drive the AntD form path and are
  prop-incompatible with the react-aria Input.
- `renderHighlightedText` and its 24 call-site swap — unrelated to this
  wrapper cleanup, and still narrows description/name rendering.

Verification:
- Core-components: `yarn type-check`, `yarn lint`, `yarn build`, `yarn test`
  (4/4 input.test.tsx pass) — all clean.
- Main app: `yarn ui-checkstyle:changed` — 0 errors. Full jest suite:
  17,911 / 17,912 pass (one full-suite XHR flake, passes in isolation).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@chirag-madlani

Copy link
Copy Markdown
Collaborator Author

Push (`055ea6d`): bake sanitization into `Input` itself; drop the `SanitizedInput` wrapper.

Net -256 lines in this commit alone (79 additions, 263 deletions across 33 files). Every consumer of `@openmetadata/ui-core-components`' `Input` now gets DOMPurify scrubbing on `onChange` automatically — no import change, no ESLint gate, no call-site rewrite. The 17-file swap, the ESLint `no-restricted-syntax` rule, and the `SanitizedInput` scaffold are all gone.

Where the sanitizer lives now. In `input.tsx`, `TextField` intercepts react-aria's `onChange` and pipes the string through `getSanitizeContent` (via `useCallback` for stable identity). For a plain string this is a no-op; for HTML like `` the tag is stripped on the way in.

Reverts landed in this commit. `sanitized-input.tsx` + its test deleted; export removed from `components/index.ts`. All 17 main-app call sites reverted from `SanitizedInput` back to `Input` — same imports, same JSX, same prop signatures. ESLint no-restricted-syntax entry banning `Input` imports removed. 12 test factories that had aliased `SanitizedInput` to their `Input` mock reverted. `ContextCenterHeader` import un-reflowed to its original single-line shape.

Left unchanged. Legacy AntD `common/SanitizedInput/` and its `formUtils.tsx` consumer stay as-is (they drive the AntD form path and are prop-incompatible with the react-aria Input). `renderHighlightedText` + its 24-site swap is a separate concern and stays — it narrows description/name rendering, not input handling.

Verification. Core-components `yarn type-check`, `yarn lint`, `yarn build` clean; `input.test.tsx` — 4/4 pass (renders, strips `<script>`, preserves entity-link syntax, plain text unchanged). Main app `yarn ui-checkstyle:changed` — 0 errors. Full jest suite: 17,911 / 17,912 pass (same single full-suite XHR flake as prior runs, passes in isolation).

chirag-madlani and others added 2 commits September 18, 2026 14:37
Three review comments from the PR's static-analysis pass:

- **CodeQL js/polynomial-redos** (`sanitize.ts:21`): `/<#E::[^>]+>/g` had an
  unbounded interior class, so an adversarial input like
  `<#E::<#E::<#E::…AAAA` (many starts, no closing `>`) could push the
  matcher into polynomial-time backtracking. Bounded the interior to
  `[^>]{1,512}` — OpenMetadata FQNs never exceed this in practice, and
  the fixed upper bound turns per-start cost into a constant so total
  work stays linear in input length. Existing tests still pass.

- **Sonar S6535** ("Use RegExp.exec() instead") on
  `EntitySearchUtils.tsx:174,175`: `attrs.match(RE)?.[1]` → `RE.exec(attrs)?.[1]`
  for both `CLASS_ATTR_RE` and `DATA_TESTID_ATTR_RE`. Neither regex
  carries the `/g` flag, so `exec` is stateless — no `lastIndex` reset
  needed. Straight rewrite; 37/37 tests in `EntitySearchUtils.test.tsx`
  still pass.

Also folds in the pending `eslint.config.mjs` revert (`no-restricted-syntax`
entry banning `Input` imports from `@openmetadata/ui-core-components`) that
belonged with the previous "bake sanitization into Input" commit but was
left uncommitted.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Review flagged that DOMPurify on Input's onChange corrupts legitimate
non-HTML input: `AT&T` gets HTML-entity-encoded to `AT&amp;T`, regex
filters like `a&b` or `<tag>` are mangled before being committed, and
because these fields are controlled the encoded string is echoed back
into the visible input.

The reviewer is right — sanitize belongs at the RENDER sink, not the
source. This PR already narrows every name/displayName render to
`renderHighlightedText` (which recognizes only the highlight + version-
diff wrappers and treats everything else as literal text — no HTML
parsing, no `dangerouslySetInnerHTML`); description-body renders still
go through `stringToHTML` (DOMPurify). Both defenses fire regardless of
what lands in the input.

Reverts:
- Remove the `useCallback` sanitize interceptor from `TextField` in
  `input.tsx`. Consumers pass raw values through again.
- Delete `input.test.tsx` (existed solely for the sanitize interceptor).
- Delete the now-unused `utils/sanitize.ts`, remove its export from
  `utils/index.ts`, and drop `dompurify` from `peerDependencies` /
  `devDependencies` / vite rollup externals. `yarn install` refreshed
  `yarn.lock`.

Untouched:
- `renderHighlightedText` and the 24-file sweep — the render-side
  narrowing that actually closes GHSA-59gm-6h39-397f.
- Legacy AntD `common/SanitizedInput/` (still used by `formUtils.tsx`).
- Every main-app `Input` import (already reverted in the previous
  commit; consumers still import `Input` unchanged, no scrubbing).

Verification: core-components `yarn type-check`, `yarn lint`, `yarn build` all clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@chirag-madlani

Copy link
Copy Markdown
Collaborator Author

You're right — thanks for catching this. Pushed `9310672`.

Bug you called out: DOMPurify on Input's `onChange` HTML-entity-encodes plain characters (`&` → `&`, bare `<`/`>` → `<`/`>`). Search boxes and regex filters carry those bytes verbatim to the backend / to a regex compiler, so `AT&T` becomes `AT&T`, `a&b` in a regex filter becomes `a&b`, and because the fields are controlled the encoded value gets echoed back into the visible input. Zero XSS benefit for a query field (its value is never rendered as HTML), pure corruption.

Fix: sanitize at the render sink, not the source. This PR already does that — every name/displayName render is now `renderHighlightedText` (recognizes only the highlight + version-diff wrappers; everything else is literal React text — no HTML parsing, no `dangerouslySetInnerHTML`), and description bodies still go through `stringToHTML` (DOMPurify). Both defenses fire regardless of what lands in the input, so we can safely stop scrubbing at input.

What was removed in this commit:

  • The `useCallback` sanitize interceptor in `TextField` (`input.tsx`).
  • `input.test.tsx` (existed solely for the interceptor).
  • `utils/sanitize.ts` in core-components + its export from `utils/index.ts`.
  • `dompurify` from `peerDependencies` / `devDependencies` / vite rollup externals.

What stays:

  • `renderHighlightedText` + the 24-file render-site sweep — the actual GHSA-59gm-6h39-397f close.
  • Every main-app `Input` import unchanged.
  • Legacy AntD `common/SanitizedInput/` (still used by `formUtils.tsx`).

Verification: `yarn type-check`, `yarn lint`, `yarn build` all clean on core-components.

@chirag-madlani

Copy link
Copy Markdown
Collaborator Author

Root cause of the UI Checkstyle failure was not a tw-audit finding on this PR — it was a pre-existing dependency: the workflow's Tailwind Audit step runs `node --test scripts/design-tokens/tw-scanner.test.js` before the actual audit, and that test file only exists on `main` since PR #33254 (chore(ui): verify theme propagation and add audit warnings) — landed after my last merge. The step errored with `Could not find 'scripts/design-tokens/tw-scanner.test.js'` and short-circuited before the file audit ever ran; the bot's summary comment just says "Tailwind Audit failed" without the specific reason (the output goes to the changed-files variable, which is empty when the step dies before the audit prints).

Pushed `f1af60f` — a fresh merge of `origin/main` (5 new commits since our last merge, including #33254 and 4 dark-theme + glossary fixes). Locally verified against the merged tree:

```
$ cat /tmp/tsfiles.txt | xargs node scripts/tw-audit.js | tail -20

UntitledUI + Tailwind design-system audit
Scanned 33 .tsx/.ts files

Totals 0 errors 13 warnings 22 info

✔ No hardcoded-value errors.
```

Zero tw-audit errors on my 33 changed `.ts/.tsx` files; `node scripts/design-tokens/{scanner,tw-scanner}.test.js` both pass. CI should now clear this step.

Review feedback (@ShaileshParmar11): the `react/no-array-index-key` disable
on the wrapper span's `key` prop could be avoided by deriving a real
stable key. Track each segment's absolute character offset in the input
string and use that as the key — every segment occupies a distinct slice
of the input, so `offset` is unique across segments and deterministic
for a given input. Drops the inline eslint-disable.

Verified: `yarn test EntitySearchUtils.test.tsx` — 37/37 pass;
`eslint --quiet` — 0 errors.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 90 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 90 warning(s) across 21 changed file(s).

Count Rule
63 react-hooks/exhaustive-deps
9 openmetadata-imports/no-lower-layer-page-imports
8 openmetadata-imports/no-circular-imports
7 no-restricted-imports
2 openmetadata-imports/no-internal-barrel-imports
1 openmetadata-imports/no-cross-page-imports
All findings
Location Rule Message
🟡 src/components/Dashboard/DataModel/DataModels/DataModelsTable.tsx:42:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/Dashboard/DataModel/DataModels/DataModelsTable.tsx:131:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'pageSize'. Either include it or remove the dependency array.
🟡 src/components/Dashboard/DataModel/DataModels/DataModelsTable.tsx:198:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'handlePagingChange'. Either include it or remove the dependency array.
🟡 src/components/Dashboard/DataModel/DataModels/DataModelsTable.tsx:242:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'searchDataModels'. Either include it or remove the dependency array.
🟡 src/components/Dashboard/DataModel/DataModels/DataModelsTable.tsx:255:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchDashboardsDataModel'. Either include it or remove the dependency array.
🟡 src/components/Database/ColumnDetailPanel/ColumnDetailPanel.component.tsx:69:1 openmetadata-imports/no-internal-barrel-imports Import the internal module directly instead of its index barrel so unrelated siblings do not enter the bundle graph.
🟡 src/components/Database/ColumnDetailPanel/ColumnDetailPanel.component.tsx:80:1 openmetadata-imports/no-internal-barrel-imports Import the internal module directly instead of its index barrel so unrelated siblings do not enter the bundle graph.
🟡 src/components/Database/ColumnDetailPanel/ColumnDetailPanel.component.tsx:622:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/Database/ColumnDetailPanel/ColumnDetailPanel.component.tsx:662:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'activeColumn'. Either include it or remove the dependency array.
🟡 src/components/Database/DatabaseSchema/DatabaseSchemaTable/DatabaseSchemaTable.tsx:64:10 no-restricted-imports 'getPrioritizedViewPermission' import from '../../../../utils/PermissionsUtils' is restricted from being used by a pattern. getPrioritizedEditPermission/getPrio
🟡 src/components/Database/DatabaseSchema/DatabaseSchemaTable/DatabaseSchemaTable.tsx:172:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'handlePagingChange'. Either include it or remove the dependency array.
🟡 src/components/Database/DatabaseSchema/DatabaseSchemaTable/DatabaseSchemaTable.tsx:202:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'pageSize'. Either include it or remove the dependency array.
🟡 src/components/Database/DatabaseSchema/DatabaseSchemaTable/DatabaseSchemaTable.tsx:211:6 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'handlePageChange' and 'setFilters'. Either include them or remove the dependency array.
🟡 src/components/Database/DatabaseSchema/DatabaseSchemaTable/DatabaseSchemaTable.tsx:316:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'searchValue'. Either include it or remove the dependency array.
🟡 src/components/Database/DatabaseSchema/DatabaseSchemaTable/DatabaseSchemaTable.tsx:352:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchDatabaseSchema'. Either include it or remove the dependency array.
🟡 src/components/Database/SchemaTable/SchemaTable.component.tsx:355:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchTestCaseSummary'. Either include it or remove the dependency array.
🟡 src/components/Database/SchemaTable/SchemaTable.component.tsx:457:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'tableFqn'. Either include it or remove the dependency array.
🟡 src/components/Database/SchemaTable/SchemaTable.component.tsx:773:5 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'handleEditDisplayNameClick' and 't'. Either include them or remove the dependency array.
🟡 src/components/Database/SchemaTable/SchemaTable.component.tsx:900:5 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'handleColumnClick' and 't'. Either include them or remove the dependency array.
🟡 src/components/Database/SchemaTable/SchemaTable.component.tsx:980:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DriveService/File/FilesTable/FilesTable.tsx:33:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/DriveService/File/FilesTable/FilesTable.tsx:114:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'setFilters'. Either include it or remove the dependency array.
🟡 src/components/DriveService/File/FilesTable/FilesTable.tsx:175:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'searchFiles'. Either include it or remove the dependency array.
🟡 src/components/DriveService/Spreadsheet/SpreadsheetsTable/SpreadsheetsTable.tsx:33:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/DriveService/Spreadsheet/SpreadsheetsTable/SpreadsheetsTable.tsx:116:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'setFilters'. Either include it or remove the dependency array.
🟡 src/components/DriveService/Spreadsheet/SpreadsheetsTable/SpreadsheetsTable.tsx:177:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'searchSpreadsheets'. Either include it or remove the dependency array.
🟡 src/components/Entity/EntityHeaderTitle/EntityHeaderTitle.component.tsx:122:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/ExploreV1/ExploreSearchCard/ExploreSearchCard.tsx:42:1 openmetadata-imports/no-circular-imports This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency.
🟡 src/components/ExploreV1/ExploreSearchCard/ExploreSearchCard.tsx:46:1 openmetadata-imports/no-circular-imports This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency.
🟡 src/components/ExploreV1/ExploreSearchCard/ExploreSearchCard.tsx:50:1 openmetadata-imports/no-circular-imports This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency.
🟡 src/components/ExploreV1/ExploreSearchCard/ExploreSearchCard.tsx:51:1 openmetadata-imports/no-circular-imports This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency.
🟡 src/components/ExploreV1/ExploreSearchCard/ExploreSearchCard.tsx:52:1 openmetadata-imports/no-circular-imports This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency.
🟡 src/components/ExploreV1/ExploreSearchCard/ExploreSearchCard.tsx:54:1 openmetadata-imports/no-circular-imports This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency.
🟡 src/components/ExploreV1/ExploreSearchCard/ExploreSearchCard.tsx:56:1 openmetadata-imports/no-circular-imports This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency.
🟡 src/components/ExploreV1/ExploreSearchCard/ExploreSearchCard.tsx:805:8 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/LineageTable/LineageTable.tsx:57:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/LineageTable/LineageTable.tsx:479:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/LineageTable/LineageTable.tsx:602:6 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'handlePagingChange', 'setColumnLineageNodes', 'setFilterNodes', 'setLineagePagingInfo', and 'setLoading'. Eith
🟡 src/components/LineageTable/LineageTable.tsx:622:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'updateEntityData'. Either include it or remove the dependency array.
🟡 src/components/LineageTable/LineageTable.tsx:693:6 react-hooks/exhaustive-deps React Hook useMemo has an unnecessary dependency: 'lineagePagingInfo'. Either exclude it or remove the dependency array.
🟡 src/components/LineageTable/LineageTable.tsx:837:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'entityType'. Either include it or remove the dependency array.
🟡 src/components/LineageTable/LineageTable.tsx:913:5 react-hooks/exhaustive-deps React Hook useMemo has an unnecessary dependency: 'lineageDirection'. Either exclude it or remove the dependency array.
🟡 src/components/LineageTable/LineageTable.tsx:937:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'selectedQuickFilters' and 'setSelectedQuickFilters'. Either include them or remove the dependency array.
🟡 src/components/LineageTable/LineageTable.tsx:988:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'handlePageChange'. Either include it or remove the dependency array.
🟡 src/components/Settings/Bot/BotListV1/BotListV1.component.tsx:373:6 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'fetchBots', 'getResourceLimit', and 'showDeleted'. Either include them or remove the dependency array.
🟡 src/components/Settings/Bot/BotListV1/BotListV1.component.tsx:422:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchBots'. Either include it or remove the dependency array.
🟡 src/components/Settings/Services/Services.tsx:209:5 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'handlePagingChange' and 't'. Either include them or remove the dependency array.
🟡 src/components/Settings/Services/Services.tsx:232:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'handlePageChange'. Either include it or remove the dependency array.
🟡 src/components/Settings/Services/Services.tsx:439:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'getServiceLogoElement'. Either include it or remove the dependency array.
🟡 src/components/Settings/Services/Services.tsx:510:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'handlePageChange'. Either include it or remove the dependency array.

… and 40 more. Run make ui-checkstyle-changed locally for the full list.


Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@gitar-bot

gitar-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 closed / 1 findings

🟡 Medium risk

Ports the DOMPurify-backed SanitizedInput wrapper to @openmetadata/ui-core-components and migrates 17 main-app call sites off the raw Untitled Input to sanitize typed values on input, with an ESLint gate to prevent future regressions. Adds getSanitizeContent utility with entity-link nonce-swap preservation and 3 passing unit tests covering render, script stripping, and link syntax preservation. The search/regex query string corruption finding is closed without a fix as it falls outside this PR's scope.

✅ 1 closed
Closed: Bug: SanitizedInput corrupts search/regex query strings

📄 openmetadata-ui/src/main/resources/ui/src/components/Settings/Services/ServiceConfig/FilterConditionComposer.tsx:85-97 📄 openmetadata-ui/src/main/resources/ui/src/components/DataQuality/TestSuite/TestSuiteList/TestSuiteListPanel.component.tsx:110 📄 openmetadata-ui/src/main/resources/ui/src/components/observability/DataQuality/Dashboard/DqSearchFilterChip.tsx:111 📄 openmetadata-ui/src/main/resources/ui/src/components/ContextCenter/ContextCenterHeader/ContextCenterHeader.component.tsx:86 📄 openmetadata-ui/src/main/resources/ui/src/components/BulkEditEntity/BulkEditEntity.component.tsx:641 📄 openmetadata-ui-core-components/src/main/resources/ui/src/utils/sanitize.ts:35-38
getSanitizeContent runs input through DOMPurify.sanitize, which serializes text nodes and HTML-entity-encodes special characters: & becomes &amp;, and a bare </> is encoded to &lt;/&gt; (or dropped when it looks like a tag). For fields whose value is later rendered as HTML this is intended, but this PR also migrates plain-text search boxes and the regex/text filter input to SanitizedInput. Their values are used as search queries and regex patterns, not inserted as HTML, so encoding gives no XSS benefit and silently corrupts legitimate input: searching R&D/AT&T sends R&amp;D to the search backend and returns no/wrong results, and a regex filter like a&b or <tag> is mangled into a&amp;b/encoded before being committed. Because these inputs are controlled (e.g. FilterConditionComposer value={value} / onChange={setValue}, TestSuiteListPanel localSearch), the encoded string is also echoed back into the visible field. Consider keeping the raw Input for these non-HTML query fields (the new ESLint rule already documents an inline-disable escape hatch for that case) or scoping sanitization to fields actually rendered as HTML.

Review coverage

Rules No rules evaluated

Functional validation Not enabled · Set up

Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-09-19T13:04:14Z)

Blocked the queue: playwright-summary

@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-09-19T14:56:58Z)

Blocked the queue: playwright-summary

@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-09-19T17:37:51Z)

Blocked the queue: playwright-summary

@chirag-madlani

Copy link
Copy Markdown
Collaborator Author

Merge-group eviction (run 35455936610) is unrelated to this PR. Failing test: `playwright/e2e/Pages/Entity.spec.ts:605 › Pipeline › Tag and Glossary Term preservation in column detail panel`, at `utils/glossaryPicker.ts:74` — `treeLocator.waitFor({ state: 'visible' })`.

Failure signature is a Playwright flake, not a code fault:

  • `Test timeout of 180000ms exceeded` + `Target page, context or browser has been closed` at the exact same `waitFor` on both the initial run and the retry — browser context dying under load on a heavy shard.
  • Zero files this PR contributed touch glossary picker, pipeline, entity spec, or the column-detail panel (`git log --no-merges --author='Chirag Madlani' --name-only 3e83f33..HEAD | grep -iE 'glossary|pipeline|Entity.spec|glossaryPicker'` → 0 hits across 72 files).
  • The changed surface here is `renderHighlightedText` in `utils/EntitySearchUtils.tsx` (24 render-site swaps + version-diff wrapper preservation) — orthogonal to the picker interaction that timed out.

Safe to re-queue. Should I try again from my end, or would you rather do it?

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing input sanitization on Untitled Input from @openmetadata/ui-core-components

4 participants