Project

General

Profile

Bug #8517

Export plugin fails to check perms on outgoing directory

Added by James C. McPherson about 8 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
General
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Affected Version:
System:
bitness:
64-bit
hardware architecture:
amd64/x86

Description

While testing some changes to the OpenMP pragmas, I tried
to export 1300+ images to /dev/null (I had been hoping this
would go really fast).

dt merrily tried to open and write files like this:

[export_job] exported to @/dev/null20110101_114753+MG_5878.jpg'

dt should check that the user running it has permission to
write to the target directory, and pop up an error if it cannot
do so.

History

#1 Updated by James C. McPherson over 7 years ago

This issue still occurs with 0.9.3. I attempted to export a collection to /dev/null - no suffixes of any sort. The messages on the console were as follows:

$ Warning: Exif tag Exif.Photo.MakerNote not encoded
Warning: Exif tag Exif.Canon.0x4002 not encoded
Warning: Exif tag Exif.Canon.0x4005 not encoded
[export_job] exported to /dev/null20061111_234103_IMG_0037.jpg'
Warning: Exif tag Exif.Photo.MakerNote not encoded
Warning: Exif tag Exif.Canon.0x4002 not encoded
Warning: Exif tag Exif.Canon.0x4005 not encoded
[export_job] exported to
/dev/null20061111_234116_IMG_0038.jpg'

This seems to be a problem of ignoring the user's stated request as much as failing
to check the permissions and return values on export.

#2 Updated by Simon Spannagel over 7 years ago

This issue still occurs with 1.0rc2.

console output:

[xmp_attach] caught exiv2 exception '/dev/nullIMG_5737.jpg: Failed to open the data source: (errno = 2)'
[export_job] exported to /dev/nullIMG_5737.jpg'
[xmp_attach] caught exiv2 exception '/dev/nullIMG_5732.jpg: Failed to open the data source: (errno = 2)'
[export_job] exported to
/dev/nullIMG_5732.jpg'
[xmp_attach] caught exiv2 exception '/dev/nullIMG_5733.jpg: Failed to open the data source: (errno = 2)'
[export_job] exported to /dev/nullIMG_5733.jpg'
[xmp_attach] caught exiv2 exception '/dev/nullIMG_5734.jpg: Failed to open the data source: (errno = 2)'
[export_job] exported to
/dev/nullIMG_5734.jpg'
[xmp_attach] caught exiv2 exception '/dev/nullIMG_5735.jpg: Failed to open the data source: (errno = 2)'
[export_job] exported to /dev/nullIMG_5735.jpg'
[xmp_attach] caught exiv2 exception '/dev/nullIMG_5736.jpg: Failed to open the data source: (errno = 2)'
[export_job] exported to
/dev/nullIMG_5736.jpg'
[xmp_attach] caught exiv2 exception '/dev/nullIMG_5737.jpg: Failed to open the data source: (errno = 2)'
[export_job] exported to /dev/nullIMG_5737.jpg'
[xmp_attach] caught exiv2 exception '/dev/nullIMG_5738.jpg: Failed to open the data source: (errno = 2)'
[export_job] exported to
/dev/nullIMG_5738.jpg'

#3 Updated by Simon Spannagel over 7 years ago

we really should check permissions better, we had some similar bug reports lately.

#4 Updated by Simon Spannagel over 7 years ago

  • Status changed from New to Fixed

Should be fixed with commit 29d06184cf095abd1d5cf10128c00d7e24ab8164 in git master.

Please check if this is correct for your case.

Also available in: Atom PDF

Go to top