Bug #73963
API: get sur un id trop grand (NumericValueOutOfRange: value "2189238242" is out of range for type integer)
Début:
30 janvier 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/104905/
NumericValueOutOfRange: value "2189238242" is out of range for type integer LINE 5: WHERE id = '2189238242' ^ (7 additional frame(s) were not displayed) ... File "wcs/api.py", line 280, in _q_traverse return super()._q_traverse(path) File "quixote/directory.py", line 82, in _q_traverse obj = self._q_lookup(component) File "wcs/api.py", line 241, in _q_lookup formdata = self.formdef.data_class().get(component) File "wcs/sql.py", line 706, in f return func(*args, **kwargs) File "wcs/sql.py", line 2976, in get cur.execute(sql_statement, {'id': str(id)})
Révisions associées
Historique
Mis à jour par Robot Gitea il y a plus d'un an
- Statut changé de Nouveau à Solution proposée
- Assigné à mis à Frédéric Péters
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/wcs/pulls/80
- Titre : sql: avoid asking postgresql for out-of-range id (#73963)
- Modifications : https://gitea.entrouvert.org/entrouvert/wcs/pulls/80/files
Mis à jour par Robot Gitea il y a plus d'un an
- Statut changé de Solution proposée à Solution validée
Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a plus d'un an
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/wcs/pulls/80
- Titre : sql: avoid asking postgresql for out-of-range id (#73963)
- Modifications : https://gitea.entrouvert.org/entrouvert/wcs/pulls/80/files
Mis à jour par Transition automatique il y a environ un an
- Statut changé de Résolu (à déployer) à Solution déployée
sql: avoid asking postgresql for out-of-range id (#73963)