desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Client does not overwrite pre-existing file on download from a chat

Open fmp777 opened this issue 1 year ago • 2 comments

I confirm (by marking "x" in the [ ] below: [x]):


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

  1. put two different images in a chat
  2. hover the first image, click the download icon, save the first image as a new file test.png
  3. verify the right image is downloaded
  4. hover the second image, click the download icon, save the second image over the previous file named test.png
  5. check the file, it is still the first image

Expected behavior File becomes overwritten

Observed behavior File stays the same as it was

fmp777 avatar Jul 15 '22 16:07 fmp777

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

devinbinnie avatar Jul 26 '22 13:07 devinbinnie

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.

devinbinnie avatar Jul 27 '22 19:07 devinbinnie