Projet

Général

Profil

Bug #6015

Error raised on when oauth2 webservice called by its slug

Ajouté par Serghei Mihai (congés, retour 15/05) il y a plus de 9 ans. Mis à jour il y a plus de 9 ans.

Statut:
Fermé
Priorité:
Normal
Catégorie:
-
Version cible:
-
Début:
27 novembre 2014
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

The webservice view allows to call a oauth2 webservice by its slug, but it raises an exception when it's done.

Here is an example:

ValueError at /idp/oauth2/ws-proxy/agglo/
    invalid literal for int() with base 10: 'agglo'


Fichiers

Révisions associées

Révision 9b7d3cec (diff)
Ajouté par Benjamin Dauvergne il y a plus de 9 ans

Do not crash on an invalid WebService id or an unknown WebService slug

fixes #6015

Historique

#1

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a plus de 9 ans

Trying to cast the webservice id and handling the exception

#2

Mis à jour par Frédéric Péters il y a plus de 9 ans

In my opinion there's a bit more to do to clean this function, it will for example still fail unexpectedly if an invalid slug is given. (but honestly I am not a fan of this fallback on slug pattern).

#4

Mis à jour par Benjamin Dauvergne il y a plus de 9 ans

New patch handle the two cases: non numeric id and unknown slug.

#5

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a plus de 9 ans

Ça me convient

#6

Mis à jour par Benjamin Dauvergne il y a plus de 9 ans

  • Statut changé de Nouveau à Résolu (à déployer)
  • % réalisé changé de 0 à 100

Appliqué par commit authentic2-idp-oauth2|commit:9b7d3cec1b451c9a49f6cd62ad968ea543a799e6.

#7

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a plus de 9 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF