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 719186 - If Trash is unavailable, RAW files are not deleted from RAW+JPEG pairs
If Trash is unavailable, RAW files are not deleted from RAW+JPEG pairs
Status: RESOLVED FIXED
Product: shotwell
Classification: Other
Component: raw
unspecified
Other All
: Normal normal
: 0.28
Assigned To: Shotwell Maintainers
Shotwell Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-08-07 08:36 UTC by Shotwell Maintainers
Modified: 2017-08-31 08:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Completed "delete_backing_files", to delete RAW-files, too. (32.74 KB, text/plain)
2017-07-26 06:09 UTC, mar.ham-d
  Details
Diff generated from file (1.79 KB, patch)
2017-07-26 07:23 UTC, Jens Georg
rejected Details | Review
When Trash is not available, also remove RAW file (1.34 KB, patch)
2017-08-28 18:51 UTC, Jens Georg
committed Details | Review

Description Charles Lindsay 2013-11-25 21:59:47 UTC


---- Reported by shotwell-maint@gnome.bugs 2013-08-07 01:36:00 -0700 ----

Original Redmine bug id: 7310
Original URL: http://redmine.yorba.org/issues/7310
Searchable id: yorba-bug-7310
Original author: Michał Sawicz
Original description:

If Trash is unavailable for some reason (e.g. external volume whose root isn't
writable by the user) and you delete a RAW+JPEG photo, Shotwell correctly
reports that it can't move to Trash and will delete directly, but the RAW file
remains.

Related issues:
related to shotwell - Feature #7311: Shotwell's Trash shouldn't be
disconnected from system's ... (Duplicate)
related to shotwell - 4207: RAW files in RAW+JPEG pairs aren't properly
deleted (Fixed)



---- Additional Comments From shotwell-maint@gnome.bugs 2013-08-07 13:51:00 -0700 ----

### History

####

#1

Updated by Jim Nelson 4 months ago

Reported at https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1201558



--- Bug imported by chaz@yorba.org 2013-11-25 22:00 UTC  ---

This bug was previously known as _bug_ 7310 at http://redmine.yorba.org/show_bug.cgi?id=7310

Unknown version " in product shotwell. 
   Setting version to "!unspecified".
Unknown milestone "unknown in product shotwell. 
   Setting to default milestone for this product, "---".
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.
Resolution set on an open status.
   Dropping resolution 

Comment 1 mar.ham-d 2017-07-26 06:09:23 UTC
Created attachment 356395 [details]
Completed "delete_backing_files", to delete RAW-files, too.

Hi everyone,

I fixed this BUG. The described problem was caused by the incomplete function "delete_backing_files" (see this attachment) in "MediaDataRepresentation.vala".
I just had to add the deletion of the master file (the raw file).

I hope that I could help. 

Greetings,
Marius
Comment 2 Jens Georg 2017-07-26 07:23:03 UTC
Created attachment 356399 [details] [review]
Diff generated from file
Comment 3 Jens Georg 2017-07-26 07:27:53 UTC
Review of attachment 356399 [details] [review]:

::: src/MediaDataRepresentation.vala
@@ +176,3 @@
+    	return prepare_input_text(filename,
+    		PrepareInputTextOptions.DEFAULT & ~PrepareInputTextOptions.STRIP, DEFAULT_USER_TEXT_INPUT_LENGTH);
+    }

This looks unrelated

@@ +791,2 @@
             !CommandlineOptions.no_runtime_monitoring);
         LibraryMonitorPool.get_instance().replace(replacement, LIBRARY_MONITOR_START_DELAY_MSEC);

Please do not remove the copy function selection function. This is necessary for fixing the issue of not being able to copy files on NTFS-backed filesystems.
Comment 4 Jens Georg 2017-07-26 07:27:55 UTC
Review of attachment 356399 [details] [review]:

::: src/MediaDataRepresentation.vala
@@ +176,3 @@
+    	return prepare_input_text(filename,
+    		PrepareInputTextOptions.DEFAULT & ~PrepareInputTextOptions.STRIP, DEFAULT_USER_TEXT_INPUT_LENGTH);
+    }

This looks unrelated

@@ +791,2 @@
             !CommandlineOptions.no_runtime_monitoring);
         LibraryMonitorPool.get_instance().replace(replacement, LIBRARY_MONITOR_START_DELAY_MSEC);

Please do not remove the copy function selection function. This is necessary for fixing the issue of not being able to copy files on NTFS-backed filesystems.
Comment 5 Jens Georg 2017-08-28 18:51:07 UTC
Created attachment 358613 [details] [review]
When Trash is not available, also remove RAW file
Comment 6 Jens Georg 2017-08-28 18:54:49 UTC
Attachment 358613 [details] pushed as 012a1ca - When Trash is not available, also remove RAW file