-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Crash with file module when directories have non utf-8 files #23861
Labels
affects_2.4
This issue/PR affects Ansible v2.4
bug
This issue/PR relates to a bug.
c:module_utils/basic
c:module_utils/
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Comments
ansibot
added
affects_2.4
This issue/PR affects Ansible v2.4
bug_report
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
labels
Apr 21, 2017
Yannig
pushed a commit
to Yannig/ansible
that referenced
this issue
Apr 21, 2017
Do not convert path in set_*_if_different.
s-hertel
added
c:module_utils/
c:module_utils/basic
and removed
needs_triage
Needs a first human triage before being processed.
labels
Apr 21, 2017
ansibot
added
the
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
label
Jun 29, 2017
This issue affect also Ansible 2.3.1. |
abadger
added a commit
to abadger/ansible
that referenced
this issue
Jul 21, 2017
* surrogate_then_strict doesn't exist. Switch to surrogate_or_strict instead. * Found some bugs in the _text.py implementation * The composed error handlers (error handlers which are made up of two or more python encoding error handlers) had a wrong string in it, 'surrogate_or_escape' doesn't exist. Replaced that with 'surrogate_or_replace' which is the correct handler name. * Left comment about the implicit conditions that are part of the surrogate_then_replace code path Fixes ansible#23865 Fixes ansible#23861
abadger
added a commit
that referenced
this issue
Jul 24, 2017
* surrogate_then_strict doesn't exist. Switch to surrogate_or_strict instead. * Found some bugs in the _text.py implementation * The composed error handlers (error handlers which are made up of two or more python encoding error handlers) had a wrong string in it, 'surrogate_or_escape' doesn't exist. Replaced that with 'surrogate_or_replace' which is the correct handler name. * Left comment about the implicit conditions that are part of the surrogate_then_replace code path Fixes #23865 Fixes #23861 (cherry picked from commit fc5d71d)
thnee
pushed a commit
to thnee/ansible
that referenced
this issue
Jul 24, 2017
* surrogate_then_strict doesn't exist. Switch to surrogate_or_strict instead. * Found some bugs in the _text.py implementation * The composed error handlers (error handlers which are made up of two or more python encoding error handlers) had a wrong string in it, 'surrogate_or_escape' doesn't exist. Replaced that with 'surrogate_or_replace' which is the correct handler name. * Left comment about the implicit conditions that are part of the surrogate_then_replace code path Fixes ansible#23865 Fixes ansible#23861
abadger
added a commit
to abadger/ansible
that referenced
this issue
Jul 25, 2017
abadger
added a commit
that referenced
this issue
Jul 25, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.4
This issue/PR affects Ansible v2.4
bug
This issue/PR relates to a bug.
c:module_utils/basic
c:module_utils/
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Bug Report
COMPONENT NAME
file
ANSIBLE VERSION
CONFIGURATION
Nothing special
OS / ENVIRONMENT
Nothing special
SUMMARY
When launching file module with recurse = yes on directories with non utf-8 files, Ansible crash with the following message:
STEPS TO REPRODUCE
You can retrieve an example at the following location: https://github.com/Yannig/yannig-ansible-playbooks/tree/master/file-encoding
EXPECTED RESULTS
Playbook apply change without crash
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: