Bug #1297
crash lors de l'affichage des logs
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
06 mars 2012
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Planning:
Description
Crash lors de l'affichage des logs, certainement suite au passage à quixote 2.6 qui passe les arguments en UTF-8 (d'où le logfile = u'wcs.log.1' qui fait planter, sans doute) :
Exception: type = '<type 'exceptions.UnicodeDecodeError'>', value = ''ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)' Stack trace (most recent call first): File "/usr/lib/pymodules/python2.6/wcs/qommon/admin/logger.ptl", line 113, in get_sidebar 111 '<ul>' 112 if logfile: > 113 '<li><a href="download?logfile=%s">%s</a></li>' % (logfile, _('Download Raw Log File')) 114 else: 115 '<li><a href="download">%s</a></li>' % _('Download Raw Log File') locals: _q_output = <TemplateIO object at 0x38b2cf0> self = <qommon.admin.logger.LoggerDirectory object at 0x2771bd0> logfile = u'wcs.log.1' File "/usr/lib/pymodules/python2.6/wcs/qommon/admin/logger.ptl", line 52, in _q_index 50 _('Nothing to show') 51 else: > 52 get_response().filter['sidebar'] = self.get_sidebar(logfile) 53 54 user_color_keys = {} locals: _q_output = <TemplateIO object at 0x38b2bf0> self = <qommon.admin.logger.LoggerDirectory object at 0x2771bd0> logfile = u'wcs.log.1' request = <qommon.http_request.HTTPRequest instance at 0x3867ea8> logfilename = '/var/lib/wcs-au-quotidien/meyzieu.au-quotidien.com/wcs.log.1' File "/usr/lib/pymodules/python2.6/quixote/directory.py", line 67, in _q_traverse 65 raise TraversalError 66 elif hasattr(obj, '__call__'): > 67 return obj() 68 else: 69 return obj (...)
Historique
Mis à jour par Frédéric Péters il y a environ 12 ans
- Statut changé de Nouveau à Résolu (à déployer)
Oui, et patch trivial dans la r2280
Mis à jour par Frédéric Péters il y a plus de 10 ans
- Statut changé de Résolu (à déployer) à Fermé