posix apis unreliable on files mounted over gvfs, e.g. truncate, open, causes OpenOffice.org to fail to save

Bug #317587 reported by Chris Cheney
2
Affects Status Importance Assigned to Milestone
gvfs (Fedora)
Fix Released
Medium
gvfs (Suse)
Fix Released
High
gvfs (Ubuntu)
Fix Released
High
Ubuntu Desktop Bugs
Hardy
Won't Fix
Undecided
Unassigned
Intrepid
Invalid
High
Unassigned
Jaunty
Fix Released
High
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gvfs

This bug that Caolan (RedHat) mentioned to me may be the cause of most of the problems with OOo working via gvfs filesystems.

https://bugzilla.redhat.com/show_bug.cgi?id=479199

Pay particular attention to the test program and the last few comments on the bug.

Related branches

Chris Cheney (ccheney)
Changed in gvfs:
importance: Undecided → High
milestone: none → jaunty-alpha-4
status: New → Confirmed
Chris Cheney (ccheney)
Changed in gvfs:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
In , Pmladek (pmladek) wrote :

Created an attachment (id=265640)
standalone testcase (testme.c)

This bug is originally reported at https://bugzilla.redhat.com/show_bug.cgi?id=479199. I have reproduced it on openSUSE-11.1 and SLED11-rc1 as well.

The posix functions (e.g. ftruncate) do not work correctly on files that are mouted over gvfs (e.g. ssh:// or smb:// or sftp://). It breaks OpenOffice.org to save files.

The problem could be reproduced by a standalone test-case created by Caolan McNamara (Red Hat developer).

Steps to reproduce:

gcc testme.c
cd /tmp
echo test > test.txt
~/a.out
size is 0

(all ok)

cd ~/.gvfs/sftp for somewhere...
echo test > test.txt
~/a.out
size is 5
truncate claimed to work, but file size is still 5
can't open test.txt
: No such file or directory

Changed in gvfs:
assignee: nobody → desktop-bugs
milestone: jaunty-alpha-4 → ubuntu-9.04-beta
status: Confirmed → Triaged
Changed in gvfs:
status: Unknown → Confirmed
Changed in gvfs:
status: Unknown → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Was just committed upstream:
  http://bzr-playground.gnome.org/gvfs/branches/gnome-2-24/revision/1949

So this will get fixed with the next GNOME point release.

Changed in gvfs:
status: Triaged → Fix Committed
Revision history for this message
In , Chris Cheney (ccheney) wrote :

Note the fix for this has been committed to upstream gvfs already for the next point release.

Changed in gvfs:
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gvfs - 1.1.7-0ubuntu1

---------------
gvfs (1.1.7-0ubuntu1) jaunty; urgency=low

  * New upstream version:
    - Fix build on some platforms
    - ftp: Fix short read errors (lp: #208750)
    - gphoto2: Make it work on iphone
    - sftp: Fix symlink creation
    - fuse: Better support of truncation, fixing OOo save (lp: #317587)
    - proxy monitors: Support mount operations, etc
    - gvfs-mount: add --device commandline support
    - sftp: Fix protocol bug that made some servers not work (lp: #286053)
    - general support for query_info over streams, implemented for smb, sftp
    - Initial support for .xdg-volume-info reading (lp: #269159)
    - fix trash crasher (lp: #332554)
    - use ssh config (lp: #264803)
  * debian/patches/02_support_xdg_volume_info.patch:
    - the new version fixes this issue
  * debian/patches/91_upstream_change_fix_trash_crasher.patch:
    - upstream change to fix a trash crasher (lp: #333791)
  * debian/rules:
    - shlibs version update

 -- Sebastien Bacher <email address hidden> Mon, 02 Mar 2009 18:10:40 +0100

Changed in gvfs:
status: Fix Committed → Fix Released
Changed in gvfs:
status: In Progress → Fix Committed
Changed in gvfs:
status: Fix Committed → Fix Released
Revision history for this message
In , Gburt (gburt) wrote :

Can we get a swamp id for this SLED 11 update?

Changed in gvfs (Suse):
status: In Progress → Incomplete
Revision history for this message
In , Swamp-suse (swamp-suse) wrote :

The SWAMPID for this issue is 27321.
Please submit the patch and patchinfo file using this ID.
(https://swamp.suse.de/webswamp/wf/27321)

Changed in gvfs (Suse):
status: Incomplete → In Progress
Revision history for this message
In , Vbotka-novell (vbotka-novell) wrote :

(In reply to comment #4)
> The SWAMPID for this issue is 27321.
> Please submit the patch and patchinfo file using this ID.
> (https://swamp.suse.de/webswamp/wf/27321)

Christian, it is not correct that this bug is recorded as "Additional Bug-IDs" in MaintenanceTracker-27321 . Would it be possible to correct it ?

Revision history for this message
In , Swamp-suse (swamp-suse) wrote :

Update released for: gvfs, gvfs-backends, gvfs-debuginfo, gvfs-debugsource, gvfs-devel, gvfs-fuse, gvfs-lang, libgvfscommon0
Products:
SLE-DEBUGINFO 11 (i386, ia64, ppc64, s390x, x86_64)
SLE-DESKTOP 11 (i386, x86_64)
SLE-SDK 11 (i386, ia64, ppc64, s390x, x86_64)
SLE-SERVER 11 (i386, ia64, ppc64, s390x, x86_64)

Revision history for this message
In , Gburt-l (gburt-l) wrote :

Closing since update was released.

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Intrepid Ibex reached end-of-life on 30 April 2010 so I am closing the report. The bug has been fixed in newer releases of Ubuntu.

Changed in gvfs (Ubuntu Intrepid):
status: Confirmed → Invalid
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Hardy has seen the end of its life and is no longer receiving any updates. Marking the Hardy task for this ticket as "Won't Fix".

Changed in gvfs (Ubuntu Hardy):
status: New → Won't Fix
Changed in gvfs (Suse):
importance: Unknown → High
status: In Progress → Fix Released
Changed in gvfs (Fedora):
importance: Unknown → Medium
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.