Projet

Général

Profil

Development #55360

Ne pas planter sur une absence d'entête Content-Type dans une JSONCell avec des actions de POST

Ajouté par Benjamin Dauvergne il y a presque 3 ans. Mis à jour il y a presque 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
02 juillet 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

        if action_response:
            response = HttpResponse(
                action_response.content, content_type=action_response.headers['Content-Type'] <-- ici
            )
            if 'Content-Disposition' in action_response.headers:
                response['Content-Disposition'] = action_response.headers['Content-Disposition']
            return response

https://sentry.entrouvert.org/entrouvert/gplexpert/issues/49442/


Fichiers

Révisions associées

Révision a23696d0 (diff)
Ajouté par Benjamin Dauvergne il y a presque 3 ans

jsoncell: do not traceback if content-type is absent (#55360)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a presque 3 ans

  • Assigné à mis à Benjamin Dauvergne
#2

Mis à jour par Benjamin Dauvergne il y a presque 3 ans

#3

Mis à jour par Valentin Deniaud il y a presque 3 ans

  • Statut changé de Solution proposée à Solution validée
#4

Mis à jour par Benjamin Dauvergne il y a presque 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit a23696d0478e6a8b5c13a9be66eecaf7854340fc
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Fri Jul 2 18:02:10 2021 +0200

    jsoncell: do not traceback if content-type is absent (#55360)
#5

Mis à jour par Frédéric Péters il y a presque 3 ans

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

Formats disponibles : Atom PDF