[GH-ISSUE #548] error when accessing to logout page while unauthenticated #520

Closed
opened 2026-02-27 11:12:12 +03:00 by kerem · 0 comments
Owner

Originally created by @themr0c on GitHub (Apr 15, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/548

Originally assigned to: @tonioo on GitHub.

If you are not authenticated and go to the /accounts/logout/ URL, then you receive a stackstrace from the application. User would expect to be redirected to the login page.

AttributeError at /accounts/logout/

'AnonymousUser' object has no attribute 'mailbox_set'

Request Method:     GET
Request URL:    https://myemails.be/accounts/logout/
Django Version:     1.5.5
Exception Type:     AttributeError
Exception Value:    

'AnonymousUser' object has no attribute 'mailbox_set'

Exception Location:     /srv/modoboa/python-virtualenv-modoboa-1.1.1/local/lib/python2.7/site-packages/django/utils/functional.py in inner, line 205
Python Executable:  /srv/modoboa/python-virtualenv-modoboa-1.1.1/bin/python
Python Version:     2.7.3
Originally created by @themr0c on GitHub (Apr 15, 2014). Original GitHub issue: https://github.com/modoboa/modoboa/issues/548 Originally assigned to: @tonioo on GitHub. If you are not authenticated and go to the /accounts/logout/ URL, then you receive a stackstrace from the application. User would expect to be redirected to the login page. ``` AttributeError at /accounts/logout/ 'AnonymousUser' object has no attribute 'mailbox_set' Request Method: GET Request URL: https://myemails.be/accounts/logout/ Django Version: 1.5.5 Exception Type: AttributeError Exception Value: 'AnonymousUser' object has no attribute 'mailbox_set' Exception Location: /srv/modoboa/python-virtualenv-modoboa-1.1.1/local/lib/python2.7/site-packages/django/utils/functional.py in inner, line 205 Python Executable: /srv/modoboa/python-virtualenv-modoboa-1.1.1/bin/python Python Version: 2.7.3 ```
kerem 2026-02-27 11:12:12 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#520
No description provided.