-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Trash bin: fix exception triggered if no correct fileId is provided. #18728
Conversation
a1070f2
to
f4fe0ed
Compare
f4fe0ed
to
d9913ed
Compare
Thanks 👍 Could you try to rebase your patch with the latest changes from nextcloud/server? https://github.com/simonspa/server/tree/trashbin_exception is some commits behind hence the CI is failing. I'm usually do it like this: https://thoughtbot.com/blog/keeping-a-github-fork-updated |
This fixes nextcloud#17115 Signed-off-by: Simon Spannagel <simon.spannagel@cern.ch>
d9913ed
to
b3ad27f
Compare
@kesselb I somehow forgot to update my fork before adding the fix. Anyway, rebased now. Somehow some of the CI tests still fail. Do I need to take care of something else? |
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.
Nice catch!
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.
Alternatively we could have made it nullable, but fine by me 👍
Thanks :)
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
Maybe this could also be backported for 17.0.3? |
/backport to stable17 |
backport to stable17 in #18734 |
Somehow in some installations the trash bin preview controller is called with incorrect
$fileId
. By assigning a default value and catching the default, aBAD_REQUEST
can be returned instead. This behavior is taken from the "normal" files preview controller.This fixes #17115