Eclipse alter files on save over GVFS mounted shares (ssh and cifs)

Bug #655434 reported by Laurent Dinclaux
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Eclipse
Confirmed
Undecided
Unassigned
gvfs
Confirmed
Undecided
Unassigned
eclipse (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: eclipse

I have upgraded my 10.04 system to 10.10. And since then, that critical bug occurs.

I have two different projects in eclipse: one on a dev server witch I access through a samba share (a wordpress project), the other one on an other server with I access through sftp (both mounted in nautilus using gvfs)

On the first project, when I edit and then save a file, most of the time some chars are added to the end of the file, example:

/*
Theme Name: child
Theme URI: http: //child.com
Description: Child theme for the Twenty Ten theme
Author: Gecka
Author URI: http: //site.com/
Template: twentyten
Version: 0.1.0
*/

Becomes, after saving the file:

/*
Theme Name: child
Theme URI: http: //child.com
Description: Child theme for the Twenty Ten theme
Author: Gecka
Author URI: http: //site.com/
Template: twentyten
Version: 0.1.0
*/

: 0.1.0
*/

This occurs for PHP and Css files.

Concerning the second project (accessed using sftp) Any file I save in eclipse is saved as an empty file! I already lost some hours of coding because of that.

I haven't tested on the local file system because I do not have any project on my computer but on my development servers.

I also tested, Ubuntu's packaged eclipse version and the new Helios release (downloaded from eclipse.com). Both have the issue in Marverick but not in Lucid.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: eclipse 3.5.2-6ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed Oct 6 11:38:53 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=fr_FR.utf8
 SHELL=/bin/bash
SourcePackage: eclipse
xulrunner-versions: /usr/lib/xulrunner-1.9.2.10

Revision history for this message
Laurent Dinclaux (dreadlox) wrote :
Changed in eclipse (Ubuntu):
status: New → Confirmed
Revision history for this message
Nicolas Bonnici (contact-nbonnici) wrote :

I have the same issue while editing files with SFTP over Nautilus and all my EDI (Geany, Gedit and also Eclipse). When i save the file weight is 0ko and of course empty. That make me lost a lot of time to restore backup over VIM in a shell.

I tested it with a fresh Ubuntu 10.10 stable release no extra package with all my webserver with correct chmod/chown even in chmod 0777.

Nicolas BONNICI

Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

I personally have tried:

- 10.10 eclipse package
- yogarine's eclipse package
- stock eclipse (downloaded from eclipse.com)

All have the issue in 10.10 and NOT in 10.04. I did a fresh install of 10.10 on my desktop computer, and got same issue.

I have wasted so much time trying all that. Reverting to 10.04.

Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

As one repported the issue with other editors, and as the same eclipse versions work fine in Lucid. It is most certainly GVFS related.

THIS IS A CRITICAL BUG FOR DEVELOPERS

Changed in gvfs:
status: New → Confirmed
summary: - Eclipse alters files on save
+ Eclipse, gedit alter files on save over GVFS mounted shares (ssh and
+ cifs)
summary: - Eclipse, gedit alter files on save over GVFS mounted shares (ssh and
- cifs)
+ Eclipse alter files on save over GVFS mounted shares (ssh and cifs)
Changed in eclipse-eclipsers:
status: New → Confirmed
Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

May this blocking bug get some attention please?

It makes eclipse unusable in a network collaborative environment. I can assist in any way providing logs or testing.

Thks.

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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