mattermost / desktop

Mattermost Desktop application for Windows, Mac and Linux
Apache License 2.0
2.03k stars 830 forks source link

Downloading a file via app intermittently fails (when download dialog shows) #2499

Closed disco-panda closed 2 months ago

disco-panda commented 1 year ago

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


Summary When downloading a file, if the system download dialog shows, the download fails as "cancelled". Smaller files download without issue and do no show the system download dialog.

Screenshot 2023-01-12 at 10 09 05 AM

Environment

Steps to reproduce

Expected behavior

Observed behavior

Possible fixes

tboulis commented 1 year ago

👋 @disco-panda, Can you please check if you have specified a default download location? I tried to reproduce but it seems to work for me: 77F2A5F1-B321-4A1D-8112-A2429BCE8DBE

25C24312-BC0E-44FD-B1CE-D690246B4775

disco-panda commented 1 year ago

@tboulis Sorry for the slow response, yes I do have a download location specified

Note, that this only occurs on files that show the native "File Save" Dialog like so:

Screenshot 2023-02-06 at 11 15 55 AM Screenshot 2023-02-06 at 11 16 16 AM
tboulis commented 1 year ago

Thank you @disco-panda, I have one more question, have you installed the app through App Store or via downloading the .dmg file?

disco-panda commented 1 year ago

Via homebrew

tboulis commented 1 year ago

Thanks, I'll try and reproduce and get back to you

disco-panda commented 1 year ago

Great, thank you so much for your help @tboulis

devinbinnie commented 1 year ago

@disco-panda Sorry for the slow response, but unfortunately I'm not able to reproduce this. Have you tried using the Mac App Store version? https://apps.apple.com/app/mattermost-desktop/id1614666244 (Note there's a bug with that version where you might need to reset your default downloads directory in the Settings window)

fmp777 commented 1 year ago

I am having this same problem.

OSX 13.3.1 a Originally installed from website dmg download, but has since been switched to app store install.

Randomly the mattermost desktop application stops being able to access the Downloads folder. There is no entry in Privacy & Security for Mattermost, no way to add it. When you click the cancelled file download dot menu and select show in finder, it shows this:

image

The relevant portion of diagnostic data shows this:

    {
      message: 'Step-6 finished successfully',
      succeeded: true,
      payload: {
        notificationsSupported: true,
        fileSystem: {
          downloadsFileAccess: { ok: false, error: [Object] },
          logsFileAccess: { ok: true }
        },
        isTrustedAccessibilityClient: false,
        mediaAccessStatus: { mic: 'denied', screen: 'denied' }
      },
      duration: 20,
      name: 'diagnostic-Step-6: PermissionsCheck',
      step: 6
    }

Its like it somehow loses the permission to write to the folder. Strange we don't see it in Privacy & Permissions area either?

Changing the download location to Documents, for example, fixes it somehow. Can then change it back to Downloads folder and it works. SO something in the process of changing location fixes it, but without even prompting by OSX to allow that newly selected folder?? 😮

devinbinnie commented 11 months ago

Is this still an issue for anyone, even on the newest build?

devinbinnie commented 2 months ago

Closing as stale.