Skip to content

Work around upstream bug in Jinja2 indent filter - #56860

Merged
dwoz merged 1 commit into
saltstack:masterfrom
terminalmage:issue56833
Apr 27, 2020
Merged

Work around upstream bug in Jinja2 indent filter#56860
dwoz merged 1 commit into
saltstack:masterfrom
terminalmage:issue56833

Conversation

@terminalmage

@terminalmage terminalmage commented Apr 23, 2020

Copy link
Copy Markdown
Contributor

What does this PR do?

This conditionally uses a port of the upstream version of the filter with the fix in place. The minion will only get this filter if it has Jinja < 2.11 installed.

What issues does this PR fix or reference?

Fixes #56833

Previous Behavior

Piping content that has gone through the yaml filter (or any other one which returns a Markup object) into the indent filter would result in some characters (<, >, ", &, and maybe others) being encoded (example in the linked issue).

New Behavior

This content is properly handled by Jinja.

Merge requirements satisfied?

  • Tests written/updated

Commits signed with GPG?

No

@terminalmage
terminalmage requested a review from a team as a code owner April 23, 2020 05:25
@ghost
ghost requested review from Ch3LL and removed request for a team April 23, 2020 05:25
This conditionally uses a port of the upstream version of the filter
with the fix in place. The minion will only get this filter if it has
Jinja < 2.11 installed.
@dwoz

dwoz commented Apr 24, 2020

Copy link
Copy Markdown
Contributor

re-run full all

@dwoz
dwoz merged commit 9dbff3c into saltstack:master Apr 27, 2020
@sagetherage sagetherage added the ZRelease-Sodium retired label label May 18, 2020
@terminalmage
terminalmage deleted the issue56833 branch February 12, 2024 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ZRelease-Sodium retired label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Jinja rendering on Debian 10 escapes safe strings

3 participants