-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stable27] fix(session): Log when crypto session data is lost #41006
Conversation
); | ||
} catch (\Exception $e) { | ||
logger('core')->critical('Could not decrypt or decode encrypted session data', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this log something when your session is brand new? because $this->session->get(
returns null => we continue with empty string and then decrypt throws?
Also json_decode('', …)
throws which could be returned by decrypt in case everything was empty, didn't dive too deep into it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cherry-picked to this backport, too
moving to 27.1.5 |
moving to 27.1.6 |
Still in draft state. moving to 27.1.7 |
e2a7b12
to
28a309f
Compare
28a309f
to
789bda6
Compare
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
789bda6
to
bcd7d59
Compare
Backport of #40879 and #41318