You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user tried to login, following log entry was created
2020-03-23 06:41:25,101 ERROR [Zope.SiteErrorLog:252][waitress] 1584942085.10.20423314325 https://mysite.de/acl_users/cookie_auth/login
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 359, in publish_module
Module ZPublisher.WSGIPublisher, line 262, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZPublisher.WSGIPublisher, line 63, in call_object
Module Products.PluggableAuthService.plugins.CookieAuthHelper, line 276, in login
KeyError: 'came_from'
Setup
PluggableAuthService 2.4
Zope 4.3
...
I can only reproduce the problem when I manually delete the value of came_from from the URL
Should we test for came_from within the login method? Or rely there is some logic in login_form template?
I cannot hardcode an URL - as there are more than one instances.
I am also not sure about the control flow when logging in. The unauthorized method handles a missing came_from but I am not sure how these two methods connect.
The text was updated successfully, but these errors were encountered:
decision at sprint:
redirect / stay at login form, but present the user a helpful message, as in "You have been successfully logged in, but we do not know where to redirect you."
The login did not work when `came_from` request parameter was missing.
This is now handled gracefully, as the user, who provided correct
credentials, now gets logged in and gets notified about the next steps.
This fixes#65
When a user tried to login, following log entry was created
Setup
PluggableAuthService 2.4
Zope 4.3
...
I can only reproduce the problem when I manually delete the value of
came_from
from the URLMaybe that's what the user did.
My login form contains this code
I cannot remember exactly, but I think empty input fields are dropped somewhere in the publishing process?
This could explain why it then "crashes" in PAS'
login
method:Products.PluggableAuthService/Products/PluggableAuthService/plugins/CookieAuthHelper.py
Line 276 in fbaac9f
Should we test for
came_from
within the login method? Or rely there is some logic in login_form template?I cannot hardcode an URL - as there are more than one instances.
I am also not sure about the control flow when logging in. The
unauthorized
method handles a missingcame_from
but I am not sure how these two methods connect.The text was updated successfully, but these errors were encountered: