-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Fix undefined class property access after upgrade from 19 to 20 #22641
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 undefined class property access after upgrade from 19 to 20 #22641
Conversation
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'm not sure I understand the issue, but I guess that some data (the session data?) is saved in some file or in the SQL database (that would be the "serialised data"), and the version saved by the stable19 branch populates the "creds" variable (via session->get('login_credentials')), and thus master has to be forwards-compatible to that, and be able to read the old data. Then the issue would be for sessions that were open in stable19, then one upgrades to master? Any fresh session opened in master would not show this issue?
Exactly :). See also my added unit test. |
The serialized data in 19 has one property less and this was not considered in the code. Hence adding a fallback. Moreover I'm changing the deserialization into an array instead of object, as that is the safer option. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
0108dad
to
adf100a
Compare
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 32754: failuremariadb10.4-php7.3Show full log
acceptance-app-files-sharing
Show full log
|
The serialized data in 19 has one property less and this was not
considered in the code. Hence adding a fallback. Moreover I'm changing
the deserialization into an array instead of object, as that is the
safer option.
Fixes

Ref #21288