Univention Bugzilla – Full Text Bug Listing |
Summary: | traceback when opening system setup modules | ||
---|---|---|---|
Product: | UCS | Reporter: | Sönke Schwardt-Krummrich <schwardt> |
Component: | UMC - Basic settings | Assignee: | Johannes Keiser <keiser> |
Status: | CLOSED FIXED | QA Contact: | Florian Best <best> |
Severity: | normal | ||
Priority: | P5 | CC: | best, klaeser, markus.daehlmann |
Version: | UCS 4.0 | Flags: | best:
Patch_Available+
|
Target Milestone: | UCS 4.2-1-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: |
https://forge.univention.org/bugzilla/show_bug.cgi?id=33520 https://forge.univention.org/bugzilla/show_bug.cgi?id=41539 |
||
What kind of report is it?: | Bug Report | What type of bug is this?: | 6: Setup Problem: Issue for the setup process |
Who will be affected by this bug?: | 1: Will affect a very few installed domains | How will those affected feel about the bug?: | 3: A User would likely not purchase the product |
User Pain: | 0.103 | Enterprise Customer affected?: | |
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | Error handling, External feedback, Internationalization | |
Max CVSS v3 score: | |||
Attachments: | patch |
Description
Sönke Schwardt-Krummrich
2012-07-25 14:35:13 CEST
Tritt denn die Fehlermeldung auf, wenn die Locale auf UTF8 gesetzt wird, also: ucr set locale/default=de_DE.UTF-8:UTF-8 locale=de_DE.UTF-8:UTF-8 The traceback has nothing to do with the set locale. It occurs when non-UTF8 values as python byte(str) (not unicode) objects are contained in the response dict. Some of the setup/load values were probably ISO8859-1. I could simply reproduce this by doing this:
>>> fd = open('/etc/timezone', 'w')
>>> fd.write(u'Europe/börlin'.encode('latin1'))
>>> fd.flush()
The timezone looks like the only possibly failing thing in load_values(). (UCR values cannot be latin1 afaik).
Created attachment 6028 [details]
patch
Also reported via traceback feedback: Version: 4.0-4 errata402 (Walle) Traceback(591c6c5cd74409e5d867805deef3de43): Die Ausführung des Kommandos setup/load network ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 282, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response self.finished(request.id, result[0]) File "%PY2.7%/univention/management/console/base.py", line 383, in finished self.result(res) File "%PY2.7%/univention/management/console/base.py", line 387, in result self.signal_emit('success', response) File "%PY2.7%/notifier/signals.py", line 75, in signal_emit self.__signals[ signal ].emit( *args ) File "%PY2.7%/notifier/signals.py", line 41, in emit cb( *args ) File "%PY2.7%/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "%PY2.7%/univention/management/console/protocol/modserver.py", line 118, in _reply self.response(msg) File "%PY2.7%/univention/management/console/protocol/modserver.py", line 341, in response self.__queue += str(msg) File "%PY2.7%/univention/management/console/protocol/message.py", line 337, in __str__ return Message._formattedMessage(self._id, self._type, self.mimetype, self.command, body, self.arguments) File "%PY2.7%/univention/management/console/protocol/message.py", line 130, in _formattedMessage data = json.dumps(body) File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 321, in dumps return _default_encoder.encode(obj) File "/usr/lib/python2.7/dist-packages/simplejson/encoder.py", line 237, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python2.7/dist-packages/simplejson/encoder.py", line 311, in iterencode return _iterencode(o, 0) UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 6: invalid start byte (In reply to Florian Best from comment #4) > Created attachment 6028 [details] > patch Applied patch: r 80867 univention-system-setup (10.0.10-21) * Bug #28070: Applied patch from Florian Best - Fix error caused by non UTF-8 values in load_values YAML: r 80868 r 80890 univention-system-setup (10.0.10-23) * Bug #28070: Applied additional patch from Florian Best r 80898 univention-system-setup (10.0.10-24) * Bug #28070: Applied additional patch from Florian Best YAML: r 80904 OK: this is robust now OK: invalid encoding in App README OK: invalid encoding in /etc/timezone OK: invalid encoding in UCR variable OK: unset UCR variable OK: YAML (adjusted in r80889) |