Projet

Général

Profil

Bug #39804

hotfix prod à faire sur master ?

Ajouté par Thomas Noël il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Rejeté
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
13 février 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

Sur corbo.node2.prod.saas.entrouvert.org y'a ce patch posé à la main :

--- corbo/views.py    2020-02-13 01:14:06.160108340 +0100
+++ /tmp/views.py    2020-02-13 01:13:45.028187191 +0100
@@ -163,7 +163,10 @@
     model = models.Subscription

     def get_object(self, queryset=None):
-        data = signing.loads(self.kwargs['unsubscription_token'])
+        try:
+            data = signing.loads(self.kwargs['unsubscription_token'])
+        except signing.BadSignature:
+            raise Http404
         try:
             return models.Subscription.objects.get(category__pk=data['category'],
                                                    identifier=data['identifier'])

Historique

#1

Mis à jour par Thomas Noël il y a environ 4 ans

  • Statut changé de Nouveau à Information nécessaire
  • Assigné à mis à Serghei Mihai

J'attribue à Serghei parce que Corbo, mais je ne sais pas qui a fait la modif sur la machine (trop vieux pour nos logs, déc. 16 21:23 /usr/lib/python2.7/dist-packages/corbo/views.py)

#2

Mis à jour par Serghei Mihai il y a environ 4 ans

Oui, c'est un patch que j'ai posé à la main pour éviter les traces mentionnées dans #30291.
Je veux bien un oeil sur le patch attaché à #17699 et ensuite je pousse en hotfix.

#3

Mis à jour par Thomas Noël il y a environ 4 ans

  • Statut changé de Information nécessaire à Rejeté

géré sur #17699

Formats disponibles : Atom PDF