-
-
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
fix: Remove duplicate memory session creation on cron jobs #38722
Conversation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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.
Makes sense!
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 do not grasp what this is about…
git says @nickvergessen touched these lines, do you know more?
PR was owncloud/core#18482 |
Would it make more sense to move the explicit memory session creation to before the app loading? |
Closing as I cannot reproduce the underlying issue anymore. |
Summary
There might be scenarios (especially on previous versions where session writes do not reopen) where application code lie the encryption KeyManager still holds the previously initialized Memory session which they obtained through DI. There should be no need to close the existing one and create a new one and crypto wrappers should also be unneeded as we are storing in memory only anyways.
There is already a memory session by default which is available if no session is set manually through
OC::initSession
or the calls removed in ths PR.server/lib/private/Server.php
Line 561 in a2afc7b
TODO
Checklist