desktop icon indicating copy to clipboard operation
desktop copied to clipboard

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

Open disco-panda opened this issue 2 years ago • 9 comments

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

  • Operating System: Mac OS (Ventura 13.0.1)
  • Mattermost Desktop App version: 5.2.2
  • Mattermost Server version: 7.5.1

Steps to reproduce

  • Download a small file, no system download dialog shows and all goes well
  • Download a large file, system download dialog shows and download fails as "cancelled"

Expected behavior

  • Files of all sizes should download without the system download dialog showing

Observed behavior

Possible fixes

disco-panda avatar Jan 12 '23 15:01 disco-panda

👋 @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

tboulis avatar Jan 16 '23 10:01 tboulis

@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

disco-panda avatar Feb 06 '23 16:02 disco-panda

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

tboulis avatar Feb 06 '23 16:02 tboulis

Via homebrew

disco-panda avatar Feb 06 '23 16:02 disco-panda

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

tboulis avatar Feb 06 '23 16:02 tboulis

Great, thank you so much for your help @tboulis

disco-panda avatar Feb 06 '23 16:02 disco-panda

@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)

devinbinnie avatar May 04 '23 15:05 devinbinnie

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?? 😮

fmp777 avatar May 09 '23 19:05 fmp777

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

devinbinnie avatar Jan 03 '24 19:01 devinbinnie