StackStorm / StackStorm/st2

Add 'shell_escape' Jinja filter

Open
#3,564 2 comments 4 reactions 1 assignee View on GitHub

@Kami is already working on this.

Since Jul 11, 2017.

complexity:easy feature good first issue
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

Hello Team,

I have tried to use local shell command to print the long string contains special characters. However it failed with below error as the output contains non-standard characters. It would be good if we can add shell_escape Jinja filter: https://docs.stackstorm.com/reference/jinja.html#applying-filters-with-jinja to handle cases like that when "dangerous" string is passed to shell command.

Failure error:
bash: line 10: ok:: command not found
bash: line 12: TASK: command not found
bash: line 13: {: Permission denied
bash: line 14: msg:: command not found

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.