Can't execute scripts on a landscape-client that has non-ascii character in its tag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Committed
|
Low
|
Simon Poirier | ||
landscape-client (Ubuntu) |
Fix Released
|
Low
|
Simon Poirier | ||
Bionic |
Fix Released
|
Low
|
Simon Poirier | ||
Cosmic |
Fix Released
|
Low
|
Simon Poirier |
Bug Description
[Impact]
* Script execution fails on computers with non-ascii tags
* This is a fairly simple bugfix which is easy to trigger
[Test Case]
* Unset locale (/etc/default/
* Tagging a client with accented characters and running a simple
"echo script" should be enough to validate the encoding correction.
[Regression Potential]
* The tag encoding change for scripts is trivial for recent clients.
It affects only code related to running shell script and, assuming bad
system encoding, should still work the same for ASCII tags.
* However, the nature of python2.7 handling of encoding for trusty
and xenial is different enough for this patch not to be included
for them, thus avoiding regressions on those clients.
[Original Description]
Steps to reproduce:
1) Add tag to a landscape-client, ex assgn tag 'täg
2) Go to scripts in the GUI page and attempt to execute script on that client
3) Script will attempt to run on client and will fail, GUI will show below error:
[Failure instance: Traceback: <type 'exceptions.
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
--- <exception caught here> ---
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
]
Above exception is generated by the client w/ LANDSCAPE_
Related branches
- Andreas Hasenack (community): Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 548 lines (+502/-0)7 files modifieddebian/changelog (+16/-0)
debian/patches/1616116-resync-loop.patch (+142/-0)
debian/patches/nutanix-kvm.patch (+17/-0)
debian/patches/post-upgrade-reboot.patch (+132/-0)
debian/patches/release-upgrade-success.patch (+23/-0)
debian/patches/series (+5/-0)
debian/patches/unicode-tags-script.patch (+167/-0)
- Andreas Hasenack (community): Approve
- git-ubuntu developers: Pending requested
-
Diff: 549 lines (+503/-0)7 files modifieddebian/changelog (+16/-0)
debian/patches/1616116-resync-loop.patch (+142/-0)
debian/patches/nutanix-kvm.patch (+18/-0)
debian/patches/post-upgrade-reboot.patch (+132/-0)
debian/patches/release-upgrade-success.patch (+23/-0)
debian/patches/series (+5/-0)
debian/patches/unicode-tags-script.patch (+167/-0)
- Andreas Hasenack (community): Approve
- git-ubuntu developers: Pending requested
-
Diff: 549 lines (+503/-0)7 files modifieddebian/changelog (+16/-0)
debian/patches/1616116-resync-loop.patch (+142/-0)
debian/patches/nutanix-kvm.patch (+18/-0)
debian/patches/post-upgrade-reboot.patch (+132/-0)
debian/patches/release-upgrade-success.patch (+23/-0)
debian/patches/series (+5/-0)
debian/patches/unicode-tags-script.patch (+167/-0)
description: | updated |
Changed in landscape: | |
importance: | Undecided → Low |
tags: | added: low-hanging-fruit |
Changed in landscape: | |
status: | New → Confirmed |
status: | Confirmed → Triaged |
Changed in landscape: | |
assignee: | nobody → Dave Jones (waveform) |
status: | Triaged → In Progress |
information type: | Proprietary → Public |
affects: | landscape → landscape-client |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
description: | updated |
tags: | added: lds-squad |
description: | updated |
tags: |
added: verification-done-bionic verification-done-cosmic removed: verification-needed verification-needed-bionic verification-needed-cosmic |
Easily reproduced by setting accented tags (e.g. éàµ) on a fresh computer. This also appears to affect xenial.