Project

General

Profile

Bug #79447

stats, UnboundLocalError: local variable 'allowed_filters' referenced before assignment

Added by Sentry Io about 1 year ago. Updated about 1 year ago.

Status:
Fermé
Priority:
Normal
Category:
-
Target version:
-
Start date:
05 July 2023
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No
Tags:

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/112641/

UnboundLocalError: local variable 'allowed_filters' referenced before assignment
(6 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "authentic2/api_views.py", line 1768, in login_new
    return self.get_statistics(request, UserLogin)
  File "authentic2/api_views.py", line 1748, in get_statistics
    if service and 'service' in allowed_filters:

Associated revisions

Revision e9f8c73b (diff)
Added by Valentin Deniaud about 1 year ago

api: do not crash on invalid filter (#79447)

History

#1

Updated by Frédéric Péters about 1 year ago

  • Tags set to statistiques
  • Project changed from Suivi des traces to Authentic 2
#2

Updated by Valentin Deniaud about 1 year ago

  • Assignee set to Valentin Deniaud
#3

Updated by Robot Gitea about 1 year ago

  • Status changed from Nouveau to Solution proposée

Valentin Deniaud (vdeniaud) a ouvert une pull request sur Gitea concernant cette demande :

#4

Updated by Robot Gitea about 1 year ago

  • Status changed from Solution proposée to Solution validée

Serghei Mihai (smihai) a approuvé une pull request sur Gitea concernant cette demande :

#5

Updated by Robot Gitea about 1 year ago

  • Status changed from Solution validée to Résolu (à déployer)

Valentin Deniaud (vdeniaud) a mergé une pull request sur Gitea concernant cette demande :

#6

Updated by Transition automatique about 1 year ago

  • Status changed from Résolu (à déployer) to Solution déployée
#7

Updated by Transition automatique 10 months ago

Automatic expiration

Also available in: Atom PDF