Bug 24440 - UMC UCR: Traceback bei Suche wenn nicht UTF-8 Zeichen in base.conf
UMC UCR: Traceback bei Suche wenn nicht UTF-8 Zeichen in base.conf
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - Univention Configuration Registry
UCS 3.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-08 12:23 CET by Felix Botner
Modified: 2013-04-09 21:05 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2011-11-08 12:23:55 CET
Wenn ein nicht UTF-8 Zeichen in der base.conf steht, endet die Suche im UMC UCR Modul in einem Traceback. 
(UTF-8 ist nur bei Neu-Installationen für die base.conf verbindlich)

Execution of command 'ucr/query' has failed:

Traceback (most recent call last):
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py', line 97, in execute
func( request )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/ucr/__init__.py', line 212, in query
self.finished( request.id, variables )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py', line 151, in finished
self.result( res )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py', line 158, in result
self.signal_emit( 'success', response )
File '/usr/lib/pymodules/python2.6/notifier/signals.py', line 68, in signal_emit
self.__signals[ signal ].emit( *args )
File '/usr/lib/pymodules/python2.6/notifier/signals.py', line 34, in emit
if args: cb( *args )
File '/usr/lib/pymodules/python2.6/notifier/__init__.py', line 104, in __call__
return self._function( *tmp, **self._kwargs )
File '/usr/lib/pymodules/python2.6/univention/management/console/protocol/modserver.py', line 97, in _reply
self.response( msg )
File '/usr/lib/pymodules/python2.6/univention/management/console/protocol/modserver.py', line 262, in response
data = str( msg )
File '/usr/lib/pymodules/python2.6/univention/management/console/protocol/message.py', line 95, in __str__
data = json.dumps( self.body )
File '/usr/lib/pymodules/python2.6/simplejson/__init__.py', line 261, in dumps
return _default_encoder.encode(obj)
File '/usr/lib/pymodules/python2.6/simplejson/encoder.py', line 214, in encode
chunks = self.iterencode(o, _one_shot=True)
File '/usr/lib/pymodules/python2.6/simplejson/encoder.py', line 282, in iterencode
return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 0: invalid continuation byte
Comment 1 Stefan Gohmann univentionstaff 2013-04-09 21:05:11 CEST
IMHO nicht mehr relevant.