Skip to content
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

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

Open
3 tasks done
disco-panda opened this issue Jan 12, 2023 · 9 comments
Open
3 tasks done

Comments

@disco-panda
Copy link

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

@tboulis
Copy link
Contributor

tboulis commented Jan 16, 2023

👋 @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
Copy link
Author

@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
Copy link
Contributor

tboulis commented Feb 6, 2023

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
Copy link
Author

Via homebrew

@tboulis
Copy link
Contributor

tboulis commented Feb 6, 2023

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

@disco-panda
Copy link
Author

Great, thank you so much for your help @tboulis

@devinbinnie
Copy link
Member

@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
Copy link

fmp777 commented May 9, 2023

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
Copy link
Member

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

@devinbinnie devinbinnie removed their assignment Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants