Project

General

Profile

Bug #9447

api : protéger l'api "user" des rôles invalides

Added by Frédéric Péters about 6 years ago. Updated about 6 years ago.

Status:
Fermé
Priority:
Normal
Target version:
Start date:
28 Dec 2015
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:

Description

Exception:
  type = '<type 'exceptions.KeyError'>', value = ''

  File "/usr/lib/python2.7/dist-packages/wcs/api.py", line 421, in _q_index
   419         user_info['id'] = user.id
   420         user_info['user_roles'] = [
>  421                 Role.get(x).get_json_export_dict() for x in
user.roles or []]
   422         return json.dumps(user_info)
   423

Files

Associated revisions

Revision bd1d04d3 (diff)
Added by Frédéric Péters about 6 years ago

api: protect against removed roles (#9447)

History

#1

Updated by Frédéric Péters about 6 years ago

#2

Updated by Frédéric Péters about 6 years ago

(déployé sur la prod) (et en recette vu que c'est là que l'erreur a été vue).

#3

Updated by Benjamin Dauvergne about 6 years ago

Ack.

#4

Updated by Frédéric Péters about 6 years ago

  • Status changed from En cours to Résolu (à déployer)
commit bd1d04d385c25b5dafdf0d2bf43d357cc1ba17e1
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Dec 28 16:14:59 2015 +0100

    api: protect against removed roles (#9447)
#5

Updated by Frédéric Péters about 6 years ago

  • Target version set to v1.26
#6

Updated by Thomas Noël about 6 years ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF