desktop
desktop copied to clipboard
Client does not overwrite pre-existing file on download from a chat
I confirm (by marking "x" in the [ ] below: [x]):
- [x ] This is not a troubleshooting question. Troubleshooting questions go here: https://docs.mattermost.com/install/troubleshooting.html.
- [x ] This doesn't reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
- [ x] I have read contributing guidelines.
Summary Downloading files from a chat will not overwrite preexisting files on save, but acts like it does.
Environment
- Operating System: OSX 12.4
- Mattermost Desktop App version: 5.1.1
- Mattermost Server version: 7.1.1
Steps to reproduce
- put two different images in a chat
- hover the first image, click the download icon, save the first image as a new file test.png
- verify the right image is downloaded
- hover the second image, click the download icon, save the second image over the previous file named test.png
- check the file, it is still the first image
Expected behavior File becomes overwritten
Observed behavior File stays the same as it was
Seems to be an issue with the MAS build, because I can't reproduce on the standalone build.
Created a ticket here: https://mattermost.atlassian.net/browse/MM-45980
There’s an Electron issue with MAS entitlements causing this. I’ve submitted a bug report: https://github.com/electron/electron/issues/35104
As per the bug, I can at least set exceptions for the Downloads folder (and a couple other select folders) so I will start with that and finish up if/when the bug is resolved.