Le 2013-12-02 14:51, Aurelien Bompard a écrit :
OK, looking at the redirections using curl, I find this :
https://mail.menestrel.net/hyperkitty/ → http://mail.menestrel.net/hyperkitty/ → https://mail.menestrel.net/
Apparently, your webserver redirects all clear-text traffic to the root website with https. And HyperKitty tries to switch back to clear-text because it is apparently not needed. The component which does that is the SSLRedirect middleware class, its aim is to switch to https on the login page and when the session is authenticated, and switch back to cleartext otherwise.
If you don't want this behaviour, just disable this class in the MIDDLEWARE_CLASSES variable in settings.py. That should do it.
Almost !!
Hyperkitty is now available, but login link fails with stack :
[Mon Dec 02 08:40:14 2013] [error] [08:40:14.647568] ROLLBACK xid=None [Mon Dec 02 08:40:14 2013] [error] Internal Server Error: /hyperkitty/accounts/login/ [Mon Dec 02 08:40:14 2013] [error] Traceback (most recent call last): [Mon Dec 02 08:40:14 2013] [error] File "/home/mailman/py27/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response [Mon Dec 02 08:40:14 2013] [error] response = callback(request, *callback_args, **callback_kwargs) [Mon Dec 02 08:40:14 2013] [error] File "/home/mailman/hyperkitty/hyperkitty/views/accounts.py", line 64, in login_view [Mon Dec 02 08:40:14 2013] [error] return django_login_view(request, *args, **kwargs) [Mon Dec 02 08:40:14 2013] [error] File "/home/mailman/py27/lib/python2.7/site-packages/django/views/decorators/debug.py", line 69, in sensitive_post_parameters_wrapper [Mon Dec 02 08:40:14 2013] [error] return view(request, *args, **kwargs) [Mon Dec 02 08:40:14 2013] [error] File "/home/mailman/py27/lib/python2.7/site-packages/django/utils/decorators.py", line 91, in _wrapped_view [Mon Dec 02 08:40:14 2013] [error] response = view_func(request, *args, **kwargs) [Mon Dec 02 08:40:14 2013] [error] File "/home/mailman/py27/lib/python2.7/site-packages/django/views/decorators/cache.py", line 89, in _wrapped_view_func [Mon Dec 02 08:40:14 2013] [error] response = view_func(request, *args, **kwargs) [Mon Dec 02 08:40:14 2013] [error] TypeError: login() got an unexpected keyword argument 'SSL' [Mon Dec 02 08:40:14 2013] [error] [08:40:14.937871] COMMIT xid=None
Aurélien
Cheers
Nico
2013/11/29 nicolas nicolas@karageuzian.com:
Le 2013-11-29 16:45, Aurelien Bompard a écrit :
Ah, that's in HTTPS. Can you please set "USE_SSL" to False in settings.py and tell me if it changes anything?
already false (needed for test with runserver and not changed after, should i change it to true ?)
Hyperkitty is now available, but login link fails with stack :
Ah, right, I didn't think of that. You can remove the "SSL: True" entry from the dictionnary in hyperkitty/urls.py, and I'll think of a more permanent compatibility technique.
Aurélien
hyperkitty-devel@lists.fedorahosted.org