Projet

Général

Profil

Bug #40045

unorderable types: NoneType() < float() sur lookup_user

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

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

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<class 'TypeError'>', value = 'unorderable types: NoneType() < float()'

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/qommon/saml2.py", line 514, in lookup_user
   512         while True:
   513             users = sorted(user_class.get_users_with_name_identifier(ni),
>  514                            key=lambda u: (u.last_seen, -int(u.id)))
   515             if users:
   516                 # if multiple users, use the more recently used or the younger

Fichiers

Révisions associées

Révision 5b3b715b (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

saml2: fix user lookup when there's no connexion time (#40045)

Révision ebaddf18 (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

saml2: fix user lookup when there's no connexion time (#40045)

Historique

#1

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

#2

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

(déployé manuellement sur le saas)

#3

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

  • Statut changé de Solution proposée à Résolu (à déployer)
commit 5b3b715bc9ff95745639a7ae7e74c2b2b5f3efa1
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Thu Feb 20 08:51:05 2020 +0100

    saml2: fix user lookup when there's no connexion time (#40045)

#4

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

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

Formats disponibles : Atom PDF