After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 753065 - gedit cannot handle file: locations in write mode - again
gedit cannot handle file: locations in write mode - again
Status: RESOLVED DUPLICATE of bug 748106
Product: gvfs
Classification: Core
Component: sftp backend
unspecified
Other Linux
: Normal minor
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2015-07-30 15:27 UTC by Jacek Pliszka
Modified: 2015-08-01 08:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (42.55 KB, image/png)
2015-07-30 15:27 UTC, Jacek Pliszka
Details

Description Jacek Pliszka 2015-07-30 15:27:15 UTC
Created attachment 308471 [details]
screenshot

gedit no longer allows saving files over sshfs/gvfs

After upgrade from fedora 21 to 22 gedit no longer allows to save files open over sshfs/gvfs and returns error:

Could not save the file "...".
Cannot handle "file:" locations in write mode. Please check that you typed the location correctly and try again.

Please fix it as otherwise I will have to go back to vi which works fine
so for me it is a crtical bug.

The directory is linked symbolically:

CUX -> /run/user/1000/gvfs/sftp:host=z20/home/pliszka/CUX
Comment 1 Jacek Pliszka 2015-07-30 18:01:47 UTC
OK, so it works, the message shows when the sftp connection times out.

It is a bit misleading so I downgraded it to enhancement but you may close it as well.
Comment 2 Sébastien Wilmet 2015-07-30 18:04:49 UTC
(In reply to Jacek Pliszka from comment #0)
> Please fix it as otherwise I will have to go back to vi which works fine
> so for me it is a crtical bug.

"This program comes with absolutely no warranty."
Comment 3 Jacek Pliszka 2015-07-31 08:28:47 UTC
Well, I have to change it again - it does not work and restarting sftp connection does not help.

This bug makes gedit rather unusable with sftp connections that needs to be reconnected.

vi works fine.

But geany does not work either.

So it is probably upstream GNOME bug/gvfs.
Comment 4 Jacek Pliszka 2015-07-31 08:32:14 UTC
kate works as well
Comment 5 Jacek Pliszka 2015-08-01 07:37:23 UTC
OK, I found workaround - I mounted directory with sshfs - no problems there.

As this problem is also with geany - it is an upstream gvfs bug.

If someone could send it to the proper team.
Comment 6 Ross Lagerwall 2015-08-01 08:43:44 UTC
This is a duplicate of bug 748106.

However, the fuse backend is a fallback mechanism intended for programs that do not use GIO. Since gedit can use GIO and works fine with sftp in that manner, I'd recommend you use it like that. E.g. add a bookmark to your sftp mount (sftp://z20/) and then access the file like that.

*** This bug has been marked as a duplicate of bug 748106 ***