Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powershell - fix quoting values #71411

Merged
merged 2 commits into from
Aug 25, 2020

Conversation

jborean93
Copy link
Contributor

SUMMARY

When internal functions use the _escape() function in the PowerShell plugin it was being embedded into a mixture of strings that were either single or double quoted. This fixes up the usage of these values ot use single quotes as it is safer and to ensure we properly escape the 5 chars that need to be escaped.

Fixes #62781

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

powershell
winrm
psrp

@ansibot ansibot added affects_2.11 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. windows Windows community labels Aug 22, 2020
@ansibot ansibot added the test This PR relates to tests. label Aug 22, 2020
@samdoran samdoran removed the needs_triage Needs a first human triage before being processed. label Aug 25, 2020
@jborean93 jborean93 merged commit 72a7cb4 into ansible:devel Aug 25, 2020
@jborean93 jborean93 deleted the ps-fetch-special-chars branch August 25, 2020 21:07
jborean93 added a commit to jborean93/ansible that referenced this pull request Aug 25, 2020
* powershell - fix quoting values

* Add ignore for smart quote skip

(cherry picked from commit 72a7cb4)
jborean93 added a commit to jborean93/ansible that referenced this pull request Aug 25, 2020
* powershell - fix quoting values

* Add ignore for smart quote skip

(cherry picked from commit 72a7cb4)
@jborean93
Copy link
Contributor Author

Backport PRs
stable-2.9 #71448
stable-2.10 #71449

nitzmahone pushed a commit that referenced this pull request Aug 28, 2020
* powershell - fix quoting values

* Add ignore for smart quote skip

(cherry picked from commit 72a7cb4)
relrod pushed a commit that referenced this pull request Aug 28, 2020
* powershell - fix quoting values

* Add ignore for smart quote skip

(cherry picked from commit 72a7cb4)
@ansible ansible locked and limited conversation to collaborators Sep 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.11 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests. windows Windows community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fetch fails on Windows filenames containing dollar sign
3 participants