-
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
Fix encoding error on grp.gr_name, which can contain non-ascii chars at domain PCs #25804
Merged
Conversation
This file contains 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
ansibot
added
affects_2.4
This issue/PR affects Ansible v2.4
bugfix_pull_request
c:plugins/lookup
needs_triage
Needs a first human triage before being processed.
labels
Jun 16, 2017
s-hertel
removed
the
needs_triage
Needs a first human triage before being processed.
label
Jun 16, 2017
flare-ws
changed the title
Fix encoding on grp.gr_name, which can contain non-ascii chars at domain PCs
Fix encoding error on grp.gr_name, which can contain non-ascii chars at domain PCs
Jun 20, 2017
ansibot
added
the
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
label
Jun 21, 2017
…cter at LDAP/AD domain workstations
flare-ws
force-pushed
the
fix_filetree_grp_encoding
branch
from
June 21, 2017 15:08
c67d152
to
36ec1ca
Compare
bcoca
removed
the
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
label
Jun 21, 2017
ansibot
added
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Jun 21, 2017
ansibot
added
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
labels
Jun 29, 2017
rebuild_merge |
ansibot
added
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Aug 30, 2017
Merged to devel and cherry-picked to stable-2.3. |
prasadkatti
pushed a commit
to prasadkatti/ansible
that referenced
this pull request
Oct 1, 2017
…at domain PCs (ansible#25804) * Fix encoding errors on grp.gr_name, which can contain non-ascii character at LDAP/AD domain workstations * fix: utils.to_text() is now used instead of py3-incompatible unicode() method
ansibot
added
bug
This issue/PR relates to a bug.
and removed
bugfix_pull_request
labels
Mar 6, 2018
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:plugins/lookup
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
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.
SUMMARY
Default callback plugin fails on decoding non-ascii characters comes from lookup.filetree plugin.
For example, if with_filetree applied on directory with group name DOMAIN\{cyrillic characters} (see reproduction below)
ISSUE TYPE
COMPONENT NAME
filetree lookup plugin (plugins/lookup/filetree.py)
ANSIBLE VERSION
ADDITIONAL INFORMATION
To reproduce:
Create a directory owned by domain group:
Run playbook contains with_filetree against this directory:
Playbook output will contain this warning instead of normal output:
If task fails, error wont be displayed either