Project

General

Profile

Bug #22405

Crash sur l'accès à la déliaison par un utilisateur non connecté

Added by Frédéric Péters almost 3 years ago. Updated over 2 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Target version:
Start date:
09 Mar 2018
Due date:
% Done:

100%

Estimated time:
Hors marché:
No
Patch proposed:
Yes
Planning:

Description

Internal Server Error: /accounts/fc/unlink/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/authentic2_auth_fc/views.py", line 494, in dispatch
    if not request.user.has_usable_password() and not \
  File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 226, in inner
    return func(self._wrapped, *args)
AttributeError: 'AnonymousUser' object has no attribute 'has_usable_password'

Files

Associated revisions

Revision d8f82579 (diff)
Added by Frédéric Péters almost 3 years ago

do not allow unauthenticated access to unlink page (fixes #22405)

Revision 21b4f96e (diff)
Added by Frédéric Péters over 1 year ago

do not allow unauthenticated access to unlink page (fixes #22405)

History

#1

Updated by Frédéric Péters almost 3 years ago

C'est suffisamment anormal pour qu'un truc fin ne soit pas nécessaire, à mon avis.

#2

Updated by Benjamin Dauvergne almost 3 years ago

Ack.

#3

Updated by Benjamin Dauvergne almost 3 years ago

  • Target version set to 0.12
#4

Updated by Frédéric Péters almost 3 years ago

  • Status changed from En cours to Résolu (à déployer)
  • % Done changed from 0 to 100
#5

Updated by Benjamin Dauvergne over 2 years ago

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

Also available in: Atom PDF