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 595827 - no file and folder deletion on cameras which support delete through libgphoto2/gvfs
no file and folder deletion on cameras which support delete through libgphoto...
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: gphoto backend
1.4.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2009-09-21 12:22 UTC by Chris Veitch
Modified: 2010-05-09 05:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
Patch to add support for cameras which can delete but not be written to (4.43 KB, patch)
2009-10-03 13:36 UTC, Chris Veitch
none Details | Review

Description Chris Veitch 2009-09-21 12:22:36 UTC
Binary package hint: gvfs

found in Ubuntu 8.10 (with all the latest updates)
can't be tested in 9.04 due to another bug which prevents access altogether
camera used is a Canon EOS 10D running in 'Normal' communication (not PTP)

bug resides somewhere between nautilus and libgphoto2:
when trying to delete files or folders off an attached camera, and error is returned by nautilus saying the the operation is "Not Supported"
libgphoto2 supports the deletion of file and folders off of cameras, including the canon EOS 10D

the program gThumb is able to delete files off of the very same camera by calling "gp_camera_file_delete" directly through libgphoto2 on the same installation
the use of "gp_camera_file_delete" in gThumb can be found in the source code (2.10.0 from sourceforge) in '/src/dlg-photo-importer.c' on line 1267

problem seems to be in process gvfsd-gphoto2 - it's cpu % increases when trying to delete files, and it only appears when the camera is plugged in

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/lib/gvfs/gvfsd-gphoto2
Package: gvfs-backends 1.0.2-0ubuntu3
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_AU.UTF-8
SourcePackage: gvfs
Uname: Linux 2.6.27-14-generic x86_64
Comment 1 Chris Veitch 2009-09-21 12:25:11 UTC
Bug Reported upstream from Launchpad
Comment 2 Chris Veitch 2009-09-24 10:19:28 UTC
UPDATE: affects newer versions of GVFS
tested on Ubuntu 9.10 - Karmic Koala Alpha 6
Comment 3 Chris Veitch 2009-10-03 13:36:48 UTC
Created attachment 144663 [details] [review]
Patch to add support for cameras which can delete but not be written to

Patch for GVFS Version: 1.4.0

Adds support for "GP_STORAGEINFO_AC_READONLY_WITH_DELETE", which is used in libgphoto2 for cameras which cannot be written to, but which files and folders can be deleted

-adds a new boolean, "can_delete"
-added check for "GP_STORAGEINFO_AC_READONLY_WITH_DELETE":
+"GP_STORAGEINFO_AC_READWRITE" and "GP_STORAGEINFO_AC_READONLY_WITH_DELETE" both set "can_delete" to true
-changes file attribute check for deletion form "can_write" to "can_delete"
Comment 4 Chris Veitch 2010-05-09 05:37:37 UTC
Code has been fixed.
Appears to have been fixed with this patch in/by GVFS 1.6