Bug 1906499

Summary: Nautilus creates invalid bookmarks for Samba shares
Product: Red Hat Enterprise Linux 8 Reporter: J <jman012345>
Component: nautilusAssignee: Ondrej Holy <oholy>
Status: CLOSED ERRATA QA Contact: Vitezslav Humpa <vhumpa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.2CC: desktop-qa-list, vhumpa
Target Milestone: rc   
Target Release: 8.4   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: nautilus-3.28.1-15.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 14:39:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description J 2020-12-10 16:33:36 UTC
Description of problem:
If I attempt to create a bookmark to a folder in a Samba share, the created bookmark is invalid. For example, if I connect to smb://mySambaServer and want to create a bookmark to a directory called myDirectory on mySambaServer, dragging the folder to the "New Bookmark" area of the left side bar creates a bookmark to smb://mySambaServer/._myDirectory, which is invalid.

Version-Release number of selected component (if applicable):
3.28.1-12

How reproducible:
Always

Steps to Reproduce:
1. In Nautilus, go to "Other Locations"
2. In the "Enter server address..." URL bar, enter the Samba server address and click Connect.
3. Attempt to drag any folder from the file list to the left bar and create a new bookmark.

Actual results:
Bookmark is created with "._" prepended to the directory name

Expected results:
Bookmark is created with nothing prepended to the directory name

Additional info:
Manually creating the bookmark by adding an entry to ~/.config/gtk-3.0/bookmarks adds the bookmark correctly.

Comment 1 Ondrej Holy 2020-12-15 16:16:14 UTC
Thanks for your issue, I can reproduce it with Nautilus 3.28.1-14. It seems that it has been fixed upstream as a side-effect of https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/212. However, this change caused some follow-up issues if I recall correctly, so it needs to be carefully investigated before backporting...

Comment 2 Ondrej Holy 2020-12-16 16:03:01 UTC
After some investigation, the fix looks safe to me, so it would be nice to backport it.

Comment 7 Vitezslav Humpa 2021-01-21 11:23:57 UTC
While I was unable the reproduce the problem with my samba setup on the original version, the problem does not appear with the fix either. The patches have been correctly applied. Verifying (as sanity only).

Comment 9 errata-xmlrpc 2021-05-18 14:39:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: GNOME security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1586