flatpak / xdg-desktop-portal

Desktop integration portal
https://flatpak.github.io/xdg-desktop-portal/
GNU Lesser General Public License v2.1
603 stars 194 forks source link

issue: Nemo: editing file via "connect to server" gives error "too many levels of symbolic links" #1267

Open odarcan opened 10 months ago

odarcan commented 10 months ago

Linux Mint Cinnamon / MATE / Xfce XDG Desktop Portal version 1.18 gvfs:amd64 1.48.2-0ubuntu1
gvfs-backends 1.48.2-0ubuntu1
gvfs-common 1.48.2-0ubuntu1
gvfs-daemons 1.48.2-0ubuntu1 gvfs-fuse 1.48.2-0ubuntu1
gvfs-libs:amd64 1.48.2-0ubuntu1

Expected Behavior

After doing a "connect to server / with ssh" in Nemo, it mounts the dir, when I edit it opens the file and saves as if on local directory.

Current Behavior

Problem is that it doesnt save, I get error: Error opening file "/run/user/1000/doc/SOMENUMBER/MYFILE":Too many levels of symbolic links The file on disk may now be truncated!

Steps to Reproduce

  1. Connect to remote server / SSH in Nemo
  2. Open text file in editor
  3. Save

Anything else we should know?

I have used nemo to mount (connect to server / ssh) and edit files for years now I have recently upgraded to Linux Mint 21.3,

now when I connect to remote server via ssh, when I open by double clicking a file, it opens but when I save changes it says Error opening file "/run/user/1000/doc/SOMENUMBER/MYFILE":Too many levels of symbolic links The file on disk may now be truncated! and it doesnt save.

If I right click on mounted dir and do open in terminal the following directory opens up /run/user/1000/gvfs/sftp:host=IPOFREMOTESERVER,user=x/MOUNTEDDIRECTORY

and from there I can write "MYEDITORNAME FILENAME", it opens the file fine and can save it.

I have a+rwx on the file permissions, and the error is not about permissions.

hfiguiere commented 10 months ago

Please update to xdg-desktop-portal 1.18.2 that fixed several issues with the document portal.

odarcan commented 10 months ago

sudo apt upgrade xdg-desktop-portal says: xdg-desktop-portal is already the newest version (1.14.4-1ubuntu2~22.04.1).

I have not had the problem of this topic for last years, only in the latest mint update a few days ago.

hfiguiere commented 10 months ago

You said:

XDG Desktop Portal version 1.18

Sorry 1.14.x is not even supported anymore.

GeorgesStavracas commented 10 months ago

Please test with xdg-desktop-portal 1.18.2 or the main branch, and report back if the issue still occurs.

As per our Security Policy, 1.14 and older are unsupported and potentially insecure versions that don't receive more updates. Please ask Mint developers to consider updating to a newer version.