** Description changed: [Impact] - * Script execution fails on computers with non-ascii tags + * Script execution fails on computers with non-ascii tags - * This is a fairly simple bugfix which is easy to trigger + * This is a fairly simple bugfix which is easy to trigger [Test Case] - * Tagging a client with accented characters and running a simple - "echo script" should be enough to validate the encoding correction. + * Unset locale (/etc/default/locale) + + * 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. + * 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. + * 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.TypeError'>: Environment contains a non-string value /usr/lib/python2.7/dist-packages/landscape/manager/scriptexecution.py:176:_handle_execute_script /usr/lib/python2.7/dist-packages/landscape/manager/scriptexecution.py:292:run_script /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:306:addCallback /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:295:addCallbacks --- <exception caught here> --- /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:577:_runCallbacks /usr/lib/python2.7/dist-packages/landscape/manager/scriptexecution.py:290:prepare_script /usr/lib/python2.7/dist-packages/landscape/manager/scriptexecution.py:129:_run_script /usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py:336:spawnProcess /usr/lib/python2.7/dist-packages/twisted/internet/base.py:923:_checkProcessArgs ] Above exception is generated by the client w/ LANDSCAPE_COMPUTER_TAGS value being None
** Tags removed: verification-needed verification-needed-bionic verification-needed-cosmic ** Tags added: verification-done-bionic verification-done-cosmic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1765518 Title: Can't execute scripts on a landscape-client that has non-ascii character in its tag To manage notifications about this bug go to: https://bugs.launchpad.net/landscape-client/+bug/1765518/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs