Launchpad has imported 6 comments from the remote bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=1767316.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2022-05-02T17:23:51+00:00 Markus W wrote:

Steps to reproduce:

1. Run Firefox (version 99.0 or 100.0b9) as a Snap package in Ubuntu 22.04 
(upgraded from 21.10)
2. Have a SMB file server available where the network shares can be mounted 
just by clicking on the share in Nautilus file manager (smb:// protocol, 
usually mounted dynamically via `/var/run/user/.../gvfs/...`)
3. Have one such share mounted and writable
4. Open any website containing images in Firefox
5. Right-click on an image and select "Save Image As..."
6. In the file save dialog, navigate to the mounted share
7. Assert content of network share is visible and browsable from within the 
save dialog
8. Select "Save" at any folder in the network share


Actual results:

* File is not saved to selected network share location
* No file download entry is created in "Downloads"
* No error is shown


Expected results:

* File is saved to selected network share location
* No error is shown

Additional information:

* When saving to a folder on the local machine instead, saving works correctly 
as expected
* In contrast to files, new folders that are created from within the save 
dialog are saved correctly on the network share

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1971168/comments/2

------------------------------------------------------------------------
On 2022-05-04T09:37:31+00:00 Markus W wrote:

Output of `journalctl -f | grep DEN` when trying to save to the network
share is as follows:

```
Mai 04 11:30:18 athlon audit[5959]: AVC apparmor="DENIED" operation="open" 
profile="snap.firefox.firefox" name="/run/mount/utab" pid=5959 comm="firefox" 
requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Mai 04 11:30:18 athlon kernel: audit: type=1400 audit(1651656618.225:90): 
apparmor="DENIED" operation="open" profile="snap.firefox.firefox" 
name="/run/mount/utab" pid=5959 comm="firefox" requested_mask="r" 
denied_mask="r" fsuid=1000 ouid=0
Mai 04 11:30:18 athlon audit[1151]: USER_AVC pid=1151 uid=103 auid=4294967295 
ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  
bus="system" path="/org/freedesktop/hostname1" 
interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" 
name=":1.231" pid=5959 label="snap.firefox.firefox" peer_pid=12048 
peer_label="unconfined"
Mai 04 11:30:18 athlon audit[1151]: USER_AVC pid=1151 uid=103 auid=4294967295 
ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  
bus="system" path="/org/freedesktop/hostname1" 
interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" 
name=":1.231" pid=5959 label="snap.firefox.firefox" peer_pid=12048 
peer_label="unconfined"
Mai 04 11:30:18 athlon audit[1151]: USER_AVC pid=1151 uid=103 auid=4294967295 
ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  
bus="system" path="/org/freedesktop/hostname1" 
interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" 
name=":1.231" pid=5959 label="snap.firefox.firefox" peer_pid=12048 
peer_label="unconfined"
Mai 04 11:30:18 athlon audit[1151]: USER_AVC pid=1151 uid=103 auid=4294967295 
ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  
bus="system" path="/org/freedesktop/hostname1" 
interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" 
name=":1.231" pid=5959 label="snap.firefox.firefox" peer_pid=12048 
peer_label="unconfined"
Mai 04 11:30:18 athlon kernel: audit: type=1107 audit(1651656618.313:91): 
pid=1151 uid=103 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" 
operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" 
interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" 
name=":1.231" pid=5959 label="snap.firefox.firefox" peer_pid=12048 
peer_label="unconfined"
Mai 04 11:30:18 athlon kernel: audit: type=1107 audit(1651656618.313:93): 
pid=1151 uid=103 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" 
operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" 
interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" 
name=":1.231" pid=5959 label="snap.firefox.firefox" peer_pid=12048 
peer_label="unconfined"
Mai 04 11:30:18 athlon kernel: audit: type=1107 audit(1651656618.313:95): 
pid=1151 uid=103 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" 
operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" 
interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" 
name=":1.231" pid=5959 label="snap.firefox.firefox" peer_pid=12048 
peer_label="unconfined"
Mai 04 11:30:18 athlon kernel: audit: type=1107 audit(1651656618.313:97): 
pid=1151 uid=103 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" 
operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" 
interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" 
name=":1.231" pid=5959 label="snap.firefox.firefox" peer_pid=12048 
peer_label="unconfined"
```

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1971168/comments/3

------------------------------------------------------------------------
On 2022-05-04T10:12:25+00:00 Markus W wrote:

For debugging purposes I added and activated the following changes for the 
Firefox apparmor profile:
```
/run/mount/utab r,
/etc/fstab r,
dbus (send)
    bus=system
    path=/org/freedesktop/hostname1
    interface=org.freedesktop.DBus.Properties
    member=GetAll
    peer=(label=unconfined),
```
Now the apparmor deny messages no longer appear in the journal but saving files 
to the network share still does not do anything as before.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1971168/comments/4

------------------------------------------------------------------------
On 2022-05-05T07:43:06+00:00 Olivier Tilloy wrote:

Thanks for the report Markus. In contrast to saving, does opening files
from a network share work within firefox?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1971168/comments/5

------------------------------------------------------------------------
On 2022-05-05T08:02:05+00:00 Markus W wrote:

Just checked, that's not working either.

To test, I open a new tab, press Ctrl + O to get the "Open File" dialog,
browse to the network share and double-click e.g. a .png file. The file
dialog then closes and nothing else happens. The image is not opened.

If I do the same steps with an image on the local drive, it opens fine.

In summary, the only thing that works on the network share is creating a
new folder from within the "Save" file dialog.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1971168/comments/6

------------------------------------------------------------------------
On 2022-05-05T08:23:50+00:00 Olivier Tilloy wrote:

I've set up a samba share on my machine and I can confirm the problem.
The share can be browsed, but files on it aren't opened, and there's no
user feedback.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1971168/comments/7


** Changed in: firefox
       Status: Unknown => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1971168

Title:
  [snap] Downloaded files not saved when saving to local network share

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/1971168/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to