-
-
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
ShareAPIController breaks for guests #10852
Comments
This comment has been minimized.
This comment has been minimized.
|
I TOTALLY AGREE WITH YOUR ASSESSMENT. Yes!! Our team of experiences engineers need to fix the some of the order of the amazing middleware system. Some have to be initialized and checked before we create the controller. Thanks again, Joas. For making me aware of my mistake. |
Fixes #10852 A quick hack. Still ensures some type safety however now also accepts null. Else we'd need to add a whole new layer of middlewares. This can only happen when a guest user wants to access a controller that requries the user_id. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Fixes #10852 A quick hack. Still ensures some type safety however now also accepts null. Else we'd need to add a whole new layer of middlewares. This can only happen when a guest user wants to access a controller that requries the user_id. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Fixes #10852 A quick hack. Still ensures some type safety however now also accepts null. Else we'd need to add a whole new layer of middlewares. This can only happen when a guest user wants to access a controller that requries the user_id. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
$userId
is null for guests:server/apps/files_sharing/lib/Controller/ShareAPIController.php
Line 116 in e2e6f23
also the usage of
$this->currentUser
needs to be validated.The text was updated successfully, but these errors were encountered: