No possibility to save file over gnome-vfs ftp connection

Bug #38066 reported by Loe Spee
30
Affects Status Importance Assigned to Milestone
gedit
Expired
Medium
gedit (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

When a ftp connection has been established using gnome-vfs (Connect to Server application).
A folder wil appear on the desktop. Opening a file from this folder in GEdit works fine. Except for the fact that I can't save the file.
The strangest thing is, when closing the file, GEdit notifies me of unsaved changes and askes me wether or not to save. When I click save, a nice progressbar appears at the top and saves the file, and the changes are commited.

Am I doing anything wrong, or is it just impossible to save a file without closing over gnome-vfs ftp connection?

Revision history for this message
Steve Frécinaux (nud) wrote :

This is a desired behaviour, since the gnome-vfs ftp support has not be judged reliable enough to enable saving by default. (indeed, it's quite buggy). Anyway I agree the save-on-close thingy looks a bit weird.

You can activate saving through ftp by adding ftp to the list of supported protocols in the gconf key at /apps/gedit-2/preferences/editor/save/writable_vfs_schemes

You can also have a look at http://bugzilla.gnome.org/show_bug.cgi?id=331072 which is somewhat related.

Revision history for this message
Loe Spee (lgespee) wrote :

Great, thanks for your reply.
After adding "ftp" to the list in gconf-editor, saving to ftp over gnome-vfs works great.

Changed in gedit:
assignee: nobody → desktop-bugs
status: Unconfirmed → Confirmed
Revision history for this message
Tomas Gustavsson (tomplast) wrote :

Great fix but this should really be fixed so you won't need to fix it manually next time.

Revision history for this message
Loe Spee (lgespee) wrote :

To Tomas Gustavsson,

Well i somewhere heard, there is a little issue with making it enabled by default.
What it does is save the file temporarily and then upload that temporary file to the FTP server. Somehow there seemes to be a difference possible between write permission and delete and replace permission (I don't know exactly what the problem was, but something in this direction). Therefor it can be possible that you may overwrite files but not delete one and replace it with a newly created file.

Correct me if I am wrong, and I will try to find the source of this statement, I'm not sure if I heard it on an IRC channel or read it somewhere.

Revision history for this message
Dean Sas (dsas) wrote :

comment 1 on the linked bug goes into the reasons why ftp save isn't on by default. http://bugzilla.gnome.org/show_bug.cgi?id=331072#c1

Changed in gedit:
importance: Medium → Low
status: Confirmed → Triaged
Revision history for this message
Shaffe (shaffe-fr) wrote :

The FTP save is not on by default because when you save the file, gnome-vfs replace 644 permissions by 666 which is not supported by web servers for security reasons.
We have to wait the developpers to change permission while uploading the file on the ftp server.

Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) wrote :

So then this is a gnome-vfs issue is it not? Isn't gnome-vfs being replaced by gio/gvfs? Or do I have something mixed up?

If so, then upstream is porting gEdit to gio/gvfs for 2.24 and thus this should be fixed for Intrepid, correct?

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Comment from upstream:
>>>
This was obsoleted by the switch to gio/gvfs
<<<
Therefore closing the bug.

Changed in gedit (Ubuntu):
status: Triaged → Invalid
Changed in gedit:
importance: Unknown → Medium
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.