settings-ui crashes if account password has unicode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
High
|
Mike Milner |
Bug Description
andreas@nsn7:~$ landscape-
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
return self._persistab
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
**keywords)
File "/usr/lib/
message, timeout)
dbus.exceptions
File "/usr/lib/
retval = candidate_
File "/usr/lib/
self.
File "/usr/lib/
config_
File "/usr/lib/
key = " = ".join((key, str(value)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
After this, it crashes everytime when openking, because the unicode password was stored in debconf or somewhere else. It's not in the config file.
I suspect account names with unicode, or anything else entered by users in unicode, could also crash it.
Related branches
- Chad Smith: Approve
- Alberto Donato (community): Approve
-
Diff: 43 lines (+22/-0)2 files modifiedlandscape/ui/model/configuration/mechanism.py (+2/-0)
landscape/ui/model/configuration/tests/test_mechanism.py (+20/-0)
Changed in landscape-client: | |
assignee: | nobody → Mike Milner (milner) |
status: | New → In Progress |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |