Skip to content

[2.0] fix(backend): skip HTML sanitizer for pure-markdown descriptions - #34562

Merged
gh-bot-collate[bot] merged 1 commit into
2.0from
backport/2.0/pr-33064
Oct 14, 2026
Merged

gh-bot-collate[bot] merged 1 commit into
2.0from
backport/2.0/pr-33064

Conversation

@gh-bot-collate

@gh-bot-collate gh-bot-collate Bot commented Oct 2, 2026

Copy link
Copy Markdown

Automated backport of #33064 to 2.0.

Source PR #33064
Author @a-kash-singh
Merge commit 544626cad6362543ad4b7c18f2e3169e1750b6fd
Method Clean cherry-pick — identical to the commit on main.

Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #33064 is asked to look.

resolver run

…33064)

2
     3	DescriptionSanitizer ran OWASP sanitize() on every description, including
     4	ones with no HTML at all. The sanitizer HTML-encodes text characters it
     5	encounters in non-HTML context, converting backticks to ` and
     6	apostrophes to ', which breaks Markdown code spans and is visible to
     7	API/MCP consumers that do not decode HTML entities.
     8
     9	Guard: skip policy.sanitize() when the substituted string contains no '<'.
    10	If there is no '<' there is no markup to sanitize, and skipping preserves
    11	Markdown syntax verbatim. Content that does contain '<' continues through
    12	the existing sanitizer path unchanged.
    13
    14	Fixes #32410

Co-authored-by: Akash Singh <[email protected]>
Co-authored-by: Vishnu Jain <[email protected]>
(cherry picked from commit 544626c)
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 69bfad0460ef27fc7c3ca69053b4e496f8adcd5f in Playwright run 37011643730, attempt 1.

✅ 557 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 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) 49m 46s

⏱️ Max setup 3m 2s · max shard execution 16m 42s · max shard-job elapsed before upload 19m 54s · reporting 4s

🌐 208.98 requests/attempt · 2.82 app boots/UI scenario · 10.98% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 208.98 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.82 per UI scenario (1629 boots / 578 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 134 0 0 0 0 0
✅ Shard chromium-02 136 0 0 0 0 0
✅ Shard chromium-03 129 0 0 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 ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0

📦 Download artifacts

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

@gh-bot-collate
gh-bot-collate Bot merged commit 988cf1c into 2.0 Oct 14, 2026
179 of 194 checks passed
@gh-bot-collate
gh-bot-collate Bot deleted the backport/2.0/pr-33064 branch October 14, 2026 13:28

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants