Project

General

Profile

Bug #8327

silent asserts produce a gettext header

Added by Frédéric Péters over 5 years ago. Updated about 3 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
23 Sep 2015
Due date:
% Done:

100%

Estimated time:
Patch proposed:
No
Planning:

Description

log_assert() got it and a message got displayed but since the string was empty it was replaced by the gettext header (see capture).

I'd suggest a change of this kind:

-            return error_redirect(request, e.message)
+            return error_redirect(request, e.message or repr(e))

Files

Associated revisions

Revision 6c2665d4 (diff)
Added by Benjamin Dauvergne over 5 years ago

idp/saml2: prevent silent asserts from producing producing a gettext header (fixes #8327)

error_redirect() pass its msg argument to gettext, if msg is empty,
gettext header is returned.

History

#2

Updated by Benjamin Dauvergne over 5 years ago

  • Status changed from Nouveau to Résolu (à déployer)
  • % Done changed from 0 to 100
#3

Updated by Benjamin Dauvergne about 5 years ago

  • Target version set to 2.2.0
#4

Updated by Benjamin Dauvergne about 5 years ago

  • Status changed from Résolu (à déployer) to Solution déployée
#5

Updated by Benjamin Dauvergne about 3 years ago

  • Status changed from Solution déployée to Fermé

Also available in: Atom PDF