-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix: Fixed issue where changing file permission for multiple files simultaneously would crash the app #10886
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
Co-authored-by: yaira2 <39923744+yaira2@users.noreply.github.com>
While this does fix the crash for me, I'm not sure if the fix is the correct solution. It reminds me of #10728 where I fixed a crash with a surface fix, but Gave92 did some exploration and fixed an bigger underlying problem. Here we have a null object, while the I'd suggest to take this fix, for it fixes a pretty important problem : if the application crashes, you simply lose your files. And it's not gonna be in the recycle bin from what I can see. But we need to dive further into the problem and fix the root of the cause. |
Indeed fairly sure this would break renaming Drives. Edit: pushed a suggested change. ItemFileName being null is not related to the item parameter being null (e.g for Drives). The parameter was confusing, I've removed it and now SaveBaseAsync() has similar signature of the other Save methods. Just in case I've also added a null check on ItemFileName itself. |
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.
LGTM.
Is it ok now? |
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.
LGTM.
… simultaneously would crash the app (files-community#10886)
Resolved / Related Issues
Items resolved / related issues by this PR.
Validation
How did you test these changes?