Repository navigation
[2.0] fix(backend): skip HTML sanitizer for pure-markdown descriptions - #34562
Merged
Merged
Conversation
…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)
7 tasks done
Contributor
✅ Playwright Results — workflow succeededValidated commit ✅ 557 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking 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:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
mohityadav766
approved these changes
Oct 14, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated backport of #33064 to
2.0.544626cad6362543ad4b7c18f2e3169e1750b6fdmain.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