Bug #23657
crash encodage sur log lors de l'échec de l'envoi d'un doc dans fargo
Début:
09 mai 2018
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Subject: Quixote Traceback (UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 83: ordinal not in range(128)) Exception: type = '<type 'exceptions.UnicodeDecodeError'>', value = ''ascii' codec can't decode byte 0xc3 in position 83: ordinal not in range(128)' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/django/utils/log.py", line 115, in emit 113 subject = '%s: %s' % ( 114 record.levelname, > 115 record.getMessage() 116 ) 117 request = None locals: record = <logging.LogRecord object at 0x7f6e0a483a50> self = <django.utils.log.AdminEmailHandler object at 0x7f6e1c380690> File "/usr/lib/python2.7/logging/__init__.py", line 759, in handle 757 self.emit(record) 758 finally: > 759 self.release() 760 return rv 761 locals: record = <logging.LogRecord object at 0x7f6e0a483a50> rv = 1 self = <django.utils.log.AdminEmailHandler object at 0x7f6e1c380690> File "/usr/lib/python2.7/logging/__init__.py", line 1329, in callHandlers 1327 found = found + 1 1328 if record.levelno >= hdlr.level: > 1329 hdlr.handle(record) 1330 if not c.propagate: 1331 c = None #break out locals: c = <logging.RootLogger object at 0x7f6e1f784a50> found = 3 hdlr = <django.utils.log.AdminEmailHandler object at 0x7f6e1c380690> record = <logging.LogRecord object at 0x7f6e0a483a50> self = <logging.Logger object at 0x7f6e19fc6b90> File "/usr/lib/python2.7/logging/__init__.py", line 1289, in handle 1287 """ 1288 if (not self.disabled) and self.filter(record): > 1289 self.callHandlers(record) 1290 1291 def addHandler(self, hdlr): locals: record = <logging.LogRecord object at 0x7f6e0a483a50> self = <logging.Logger object at 0x7f6e19fc6b90> File "/usr/lib/python2.7/logging/__init__.py", line 1279, in _log 1277 exc_info = sys.exc_info() 1278 record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra) > 1279 self.handle(record) 1280 1281 def handle(self, record): locals: args = () exc_info = None extra = None fn = '/usr/lib/python2.7/dist-packages/wcs/portfolio.py' func = 'afterjob' level = 40 lno = 105 msg = 'xxxxfichierxxxx.pdf failed to be pushed to portfolio of ABCD NOM\xc3\x89' record = <logging.LogRecord object at 0x7f6e0a483a50> self = <logging.Logger object at 0x7f6e19fc6b90> ...
Fichiers
Révisions associées
Historique
Mis à jour par Thomas Noël il y a presque 6 ans
- Statut changé de Nouveau à En cours
- Assigné à mis à Thomas Noël
Mis à jour par Thomas Noël il y a presque 6 ans
- Fichier 0001-portfolio-use-repr-in-log-statements-23657.patch 0001-portfolio-use-repr-in-log-statements-23657.patch ajouté
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a presque 6 ans
- Statut changé de En cours à Résolu (à déployer)
commit 97672e11b1625a06c48e8a42ca2464c94d83f0c0 Author: Thomas NOEL <tnoel@entrouvert.com> Date: Wed May 9 10:45:37 2018 +0200 portfolio: use repr in log statements (#23657)
Mis à jour par Frédéric Péters il y a plus de 5 ans
- Statut changé de Résolu (à déployer) à Solution déployée
portfolio: use repr in log statements (#23657)