Projet

Général

Profil

Bug #40273

expires_in doit être un entier

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é à:
-
Catégorie:
OpenID Connect
Version cible:
-
Début:
28 février 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

La spec dit :

A.14. "expires_in" Syntax

The "expires_in" element is defined in Sections 4.2.2 and 5.1:

expires-in = 1*DIGIT

et passer un nombre décimal a des conséquences comme côté jenkins :

java.lang.NumberFormatException: For input string: "30.0" 
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Long.parseLong(Long.java:589)
        at java.lang.Long.valueOf(Long.java:803)
        at com.google.api.client.auth.oauth2.TokenResponse.getExpiresInSeconds(TokenResponse.java:124)
        at com.google.api.client.auth.oauth2.Credential.setFromTokenResponse(Credential.java:542)

Fichiers

Révisions associées

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

oidc: always gives integer for expires_in values (#40273)

Historique

#1

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

(régression de #35205)

#3

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

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

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit fcaea2178490cc43733f26ead725b4d7a811ebe6
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Feb 28 16:07:33 2020 +0100

    oidc: always gives integer for expires_in values (#40273)
#5

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