-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix mapper not properly casting int in oauth2 code #15148
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
Conversation
|
/backport to stable16 |
|
server/apps/oauth2/lib/Db/AccessToken.php Line 36 in 97321f6
I think we should fix the getter otherwise we have to cast it on every occurrence. |
|
Well actually server/apps/oauth2/lib/Db/AccessToken.php Line 49 in 5f71805
|
|
So I would fix server/lib/public/AppFramework/Db/Entity.php Lines 126 to 128 in ba87db3
|
|
Any idea what is broken? If the record is populated from DB the values should be set through the setters. We could migrate to QBMapper for 17. |
|
I have no idea why it does 💥 but it was reported and did 💥 for me on a 16 test with php 7.1 (no xdebug there). I propose to just get this in and fix it properly later. |
|
Sure. I still vote for a getter in accesstoken and do the type cast there. |
|
Ah sure that is fine as well |
97321f6 to
21d542f
Compare
|
Ah. so it was actually because the wront names were used for setting the types 🙈 |
Else this does 💥 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
ChristophWurst
left a comment
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.
🙈
kesselb
left a comment
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.
You found the real mistake 🚀
|
backport to stable16 in #15215 |
Else this does 💥
Signed-off-by: Roeland Jago Douma roeland@famdouma.nl