[Flatpak] Changing the download path will make Firefox unable to download any file
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox102 | --- | affected |
People
(Reporter: csasca, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
Affected versions
- Flatpak 102.0b8
Affected platforms
- Ubuntu 22.04
Steps to reproduce
- Launch Firefox
- Access about:preferences and change the download path
- Access for example ThinkBroadband and download a file
Expected result
- The file is downloaded in the selected path
Actual result
- The path seems to not be selected correctly and a download error is shown
Regression range
- Can't search for a regression as Flatpak will install only the latest build available
Additional notes
- The issue can be seen in the attachment.
Reporter | ||
Updated•2 years ago
|
Comment 1•2 years ago
|
||
We almost certainly can't fix this inside the frontend code. But also, isn't this a dupe of bug 1769958, which another member of QA just closed as no longer being reproducible?
Comment 3•2 years ago
|
||
This kind of works for me on Fedora 36:
The download folder path is set to cryptic: /run/user/1000/doc/d651666d/MyDownloadFiles
but the path is mapped to the home directory I've picked up during folder selection. The download doesn't fail and file is then found in the right location.
Versions of the flatpak and portal packages. @Catalin does versions differ from your significantly?
flatpak-1.12.7-2.fc36.x86_64
libportal-0.5-2.fc36.x86_64
xdg-desktop-portal-1.12.4-1.fc36.x86_64
xdg-desktop-portal-gnome-42.1-1.fc36.x86_64
xdg-desktop-portal-kde-5.24.5-1.fc36.x86_64
Comment 4•2 years ago
|
||
We'd need:
snap info firefox
- repro on stable and on nightly?
- distro version / making sure everything is uptodate
about:support
- new profile or changed prefs?
/usr/libexec/xdg-desktop-portal -rv
andjournalctl -fe
output when reproducing
Reporter | ||
Comment 5•2 years ago
|
||
Still reproducing on Flatpak 102.0b9. Snap or normal unpacked builds are not affected, only Flatpak. Also talked to Mihai about Bug 1769958 but there the issue was that he couldn't even select another download path. The downloads will work if the default "download" path is selected and that can be seen in this attachment, but when selecting any other folder, it will set a cryptic path as Jan said.
Reporter | ||
Comment 6•2 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #4)
We'd need:
snap info firefox
- repro on stable and on nightly?
- distro version / making sure everything is uptodate
about:support
- new profile or changed prefs?
/usr/libexec/xdg-desktop-portal -rv
andjournalctl -fe
output when reproducing
- Snap works ok, didn't encounter any issues with it, only with Flatpak builds
- 102.0b9 installed via the flatpak terminal command
- Ubuntu 22.04 with all updates made
- I'll attach a text doc with the about:support info
- Happens on new profile, only the path for downloads in about:preferences changed
XDP: load portals from /usr/share/xdg-desktop-portal/portals
XDP: loading /usr/share/xdg-desktop-portal/portals/gnome.portal
XDP: portal implementation for gnome
XDP: portal implementation supports org.freedesktop.impl.portal.Account
XDP: portal implementation supports org.freedesktop.impl.portal.AppChooser
XDP: portal implementation supports org.freedesktop.impl.portal.Screenshot
XDP: portal implementation supports org.freedesktop.impl.portal.ScreenCast
XDP: portal implementation supports org.freedesktop.impl.portal.RemoteDesktop
XDP: portal implementation supports org.freedesktop.impl.portal.Lockdown
XDP: portal implementation supports org.freedesktop.impl.portal.Background
XDP: portal implementation supports org.freedesktop.impl.portal.Settings
XDP: portal implementation supports org.freedesktop.impl.portal.Wallpaper
XDP: portal implementation supports org.freedesktop.impl.portal.FileChooser
XDP: portal implementation supports org.freedesktop.impl.portal.Print
XDP: loading /usr/share/xdg-desktop-portal/portals/gnome-shell.portal
XDP: portal implementation for gnome
XDP: portal implementation supports org.freedesktop.impl.portal.Access
XDP: loading /usr/share/xdg-desktop-portal/portals/gnome-keyring.portal
XDP: portal implementation for gnome
XDP: portal implementation supports org.freedesktop.impl.portal.Secret
XDP: loading /usr/share/xdg-desktop-portal/portals/gtk.portal
XDP: portal implementation for gnome
XDP: portal implementation supports org.freedesktop.impl.portal.FileChooser
XDP: portal implementation supports org.freedesktop.impl.portal.AppChooser
XDP: portal implementation supports org.freedesktop.impl.portal.Print
XDP: portal implementation supports org.freedesktop.impl.portal.Notification
XDP: portal implementation supports org.freedesktop.impl.portal.Inhibit
XDP: portal implementation supports org.freedesktop.impl.portal.Access
XDP: portal implementation supports org.freedesktop.impl.portal.Account
XDP: portal implementation supports org.freedesktop.impl.portal.Email
XDP: portal implementation supports org.freedesktop.impl.portal.DynamicLauncher
XDP: portal implementation supports org.freedesktop.impl.portal.Lockdown
XDP: portal implementation supports org.freedesktop.impl.portal.Settings
XDP: Using gnome.portal for org.freedesktop.impl.portal.Lockdown in GNOME
XDP: providing portal org.freedesktop.portal.MemoryMonitor
XDP: providing portal org.freedesktop.portal.PowerProfileMonitor
XDP: providing portal org.freedesktop.portal.NetworkMonitor
XDP: providing portal org.freedesktop.portal.ProxyResolver
XDP: providing portal org.freedesktop.portal.Trash
XDP: providing portal org.freedesktop.portal.GameMode
XDP: providing portal org.freedesktop.portal.Realtime
XDP: Using gnome.portal for org.freedesktop.impl.portal.Settings
XDP: Using gtk.portal for org.freedesktop.impl.portal.Settings
XDP: providing portal org.freedesktop.portal.Settings
XDP: Using gnome.portal for org.freedesktop.impl.portal.FileChooser in GNOME
XDP: providing portal org.freedesktop.portal.FileChooser
XDP: Using gnome.portal for org.freedesktop.impl.portal.AppChooser in GNOME
XDP: providing portal org.freedesktop.portal.OpenURI
XDP: Using gnome.portal for org.freedesktop.impl.portal.Print in GNOME
XDP: providing portal org.freedesktop.portal.Print
XDP: Using gnome.portal for org.freedesktop.impl.portal.Screenshot in GNOME
XDP: providing portal org.freedesktop.portal.Screenshot
XDP: Using gtk.portal for org.freedesktop.impl.portal.Notification in GNOME
XDP: providing portal org.freedesktop.portal.Notification
XDP: Using gtk.portal for org.freedesktop.impl.portal.Inhibit in GNOME
XDP: providing portal org.freedesktop.portal.Inhibit
XDP: Using gnome-shell.portal for org.freedesktop.impl.portal.Access in GNOME
XDP: Using gnome.portal for org.freedesktop.impl.portal.Background in GNOME
XDP: providing portal org.freedesktop.portal.Device
XDP: providing portal org.freedesktop.portal.WebExtensions
XDP: providing portal org.freedesktop.portal.Location
XDP: providing portal org.freedesktop.portal.Camera
XDP: Starting background app monitor
XDP: providing portal org.freedesktop.portal.Background
XDP: Using gnome.portal for org.freedesktop.impl.portal.Wallpaper in GNOME
XDP: providing portal org.freedesktop.portal.Wallpaper
XDP: Using gnome.portal for org.freedesktop.impl.portal.Account in GNOME
XDP: using org.freedesktop.impl.portal.Account at org.freedesktop.impl.portal.desktop.gnome
XDP: providing portal org.freedesktop.portal.Account
XDP: Using gtk.portal for org.freedesktop.impl.portal.Email in GNOME
XDP: providing portal org.freedesktop.portal.Email
XDP: Using gnome-keyring.portal for org.freedesktop.impl.portal.Secret in GNOME
XDP: providing portal org.freedesktop.portal.Secret
XDP: Using gtk.portal for org.freedesktop.impl.portal.DynamicLauncher in GNOME
XDP: providing portal org.freedesktop.portal.DynamicLauncher
XDP: Using gnome.portal for org.freedesktop.impl.portal.ScreenCast in GNOME
XDP: providing portal org.freedesktop.portal.ScreenCast
XDP: Using gnome.portal for org.freedesktop.impl.portal.RemoteDesktop in GNOME
XDP: providing portal org.freedesktop.portal.RemoteDesktop
XDP: org.freedesktop.portal.Desktop acquired
journalctl-fe
XDP: Running instances changed, wake up monitor thread
XDP: Running instances changed, wake up monitor thread
XDP: Running instances changed, wake up monitor thread
XDP: Read org.freedesktop.appearance color-scheme
XDP: Running app windows changed, wake up monitor thread
XDP: Checking background permissions
XDP: No background permissions found: No entry for background
XDP: Failed to load pid file '/run/user/1000/.flatpak/org.mozilla.firefox/pid': Failed to open file “/run/user/1000/.flatpak/org.mozilla.firefox/pid”: No such file or directory
XDP: Failed to load bwrapinfo.json file '/run/user/1000/.flatpak/org.mozilla.firefox/bwrapinfo.json': Failed to open file “/run/user/1000/.flatpak/org.mozilla.firefox/bwrapinfo.json”: No such file or directory
XDP: Failed to load instance info file '/run/user/1000/.flatpak/org.mozilla.firefox/info': No such file or directory
XDP: Failed to load bwrapinfo.json file '/run/user/1000/.flatpak/org.mozilla.firefox/bwrapinfo.json': Failed to open file “/run/user/1000/.flatpak/org.mozilla.firefox/bwrapinfo.json”: No such file or directory
XDP: App org.mozilla.firefox is active
XDP: No background permissions found
XDP: App org.mozilla.firefox is new ...skipping
XDP: Checking background permissions
XDP: No background permissions found: No entry for background
XDP: Failed to load pid file '/run/user/1000/.flatpak/org.mozilla.firefox/pid': Failed to open file “/run/user/1000/.flatpak/org.mozilla.firefox/pid”: No such file or directory
XDP: Failed to load bwrapinfo.json file '/run/user/1000/.flatpak/org.mozilla.firefox/bwrapinfo.json': Failed to open file “/run/user/1000/.flatpak/org.mozilla.firefox/bwrapinfo.json”: No such file or directory
XDP: Failed to load instance info file '/run/user/1000/.flatpak/org.mozilla.firefox/info': No such file or directory
XDP: Failed to load bwrapinfo.json file '/run/user/1000/.flatpak/org.mozilla.firefox/bwrapinfo.json': Failed to open file “/run/user/1000/.flatpak/org.mozilla.firefox/bwrapinfo.json”: No such file or directory
XDP: App org.mozilla.firefox is active
XDP: No background permissions found
Reporter | ||
Comment 7•2 years ago
|
||
Alexandre please let me know if I can help with any other informations. Thank you!
Comment 8•2 years ago
|
||
I am focusing on snap, so I can't look at that.
Comment 9•2 years ago
|
||
It should be fixed by document portal, please send output of:
flatpak documents org.mozilla.firefox --columns=all
There shoudl be your custom download directory listed.
This work for flatpak-1.14.1 at least.
Reporter | ||
Comment 10•2 years ago
|
||
Tried again on Firefox 110.0b7 on Ubuntu 22.04 with a clean profile and the initial issue is still reproducible (download fails instantly if the path is changed).
Besides that, the downloads does seem to not work at all now even with the default download path selected (see the attachment). It will state that the download is finished but it won't open the folder where it is downloaded nor will find the file when manually going to the Downloads folder.
Comment 11•2 years ago
|
||
(In reply to Catalin Sasca, QA [:csasca] from comment #10)
Created attachment 9315040 [details]
issue.webmTried again on Firefox 110.0b7 on Ubuntu 22.04 with a clean profile and the initial issue is still reproducible (download fails instantly if the path is changed).
What version of flatpak is this (see comment 9)?
Besides that, the downloads does seem to not work at all now even with the default download path selected (see the attachment). It will state that the download is finished but it won't open the folder where it is downloaded nor will find the file when manually going to the Downloads folder.
I can't see the video where I am right now - does opening the file work? Are there any errors in the browser console? If a download doesn't work at all on a clean profile with default settings, please file a separate bug with more details.
Reporter | ||
Comment 12•2 years ago
|
||
What version of flatpak is this (see comment 9)?
ID Path Origin Application Permissions
224a921 /run/user/1000/doc/224a921/try /home/albert/Desktop/try org.mozilla.firefox read grant-permissions
This is the output I get by entering the string from Comment 9.
Flatpak version in terminal seems to be 1.12.7 (installed today). updating/upgrading from terminal doesn't seem to bring it up to 1.14.1. Is there another way to get it to that version?
I can't see the video where I am right now - does opening the file work? Are there any errors in the browser console? If a download doesn't work at all on a clean profile with default settings, please file a separate bug with more details.
Nothing happens by clicking on the file to open it or try to launch the folder where it seem to be downloaded and no errors are shown in browser console.
Description
•