Projet

Général

Profil

Bug #8327

silent asserts produce a gettext header

Ajouté par Frédéric Péters il y a plus de 8 ans. Mis à jour il y a plus de 6 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
Début:
23 septembre 2015
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Non
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))

Fichiers

Révisions associées

Révision 6c2665d4 (diff)
Ajouté par Benjamin Dauvergne il y a plus de 8 ans

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.

Historique

#2

Mis à jour par Benjamin Dauvergne il y a plus de 8 ans

  • Statut changé de Nouveau à Résolu (à déployer)
  • % réalisé changé de 0 à 100
#3

Mis à jour par Benjamin Dauvergne il y a plus de 8 ans

  • Version cible mis à 2.2.0
#4

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

  • Statut changé de Résolu (à déployer) à Solution déployée
#5

Mis à jour par Benjamin Dauvergne il y a plus de 6 ans

  • Statut changé de Solution déployée à Fermé

Formats disponibles : Atom PDF