Projet

Général

Profil

Development #42784

trace sur Authorization: Bearer (ValueError: need more than 1 value to unpack)

Ajouté par Sentry Io il y a presque 4 ans. Mis à jour il y a presque 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
12 mai 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/2142/

ValueError: need more than 1 value to unpack
  File "passerelle/utils/jsonresponse.py", line 128, in api
    resp = f(*args, **kwargs)
  File "passerelle/views.py", line 424, in perform
    if not self.check_perms(request):
  File "passerelle/views.py", line 419, in check_perms
    return is_authorized(request, self.connector, perm)
  File "passerelle/utils/__init__.py", line 137, in is_authorized
    return set(users).intersection(get_request_users(request))
  File "passerelle/utils/__init__.py", line 81, in get_request_users
    (scheme, param) = request.META['HTTP_AUTHORIZATION'].split(' ', 1)

Error occurred while processing request

Fichiers

Révisions associées

Révision 6f43d36a (diff)
Ajouté par Benjamin Dauvergne il y a presque 4 ans

misc: do not trace on invalid HTTP auth (#42784)

Historique

#1

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

  • Projet changé de Suivi des traces à Passerelle
HTTP_AUTHORIZATION = 'Bearer'
...
HTTP_USER_AGENT = 'Microsoft.Data.Mashup (https://go.microsoft.com/fwlink/?LinkID=304225)'
#2

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

  • Assigné à mis à Benjamin Dauvergne
#3

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

Il y avait certainement des tests indirects sur ça ailleurs mais j'ai eu la flemme de chercher.

#4

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

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

(c'est une correction qui pour moi peut totalement faire partie de la mise à jour ce soir)

#5

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit 6f43d36ad8f4b2192e17f141c5ced3a98663c428
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Tue May 12 18:58:48 2020 +0200

    misc: do not trace on invalid HTTP auth (#42784)

#6

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

commit d283ffc33680ded8c9d1c9e0d69f5f8aef0eb53d
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Tue May 12 18:58:48 2020 +0200

    misc: do not trace on invalid HTTP auth (#42784)
#7

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

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

Formats disponibles : Atom PDF