** Project changed: ubuntuone-shotwell-plugin => shotwell

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to shotwell in Ubuntu.
https://bugs.launchpad.net/bugs/1886732

Title:
  reports read permission as "photo library folder was not writable"

Status in Shotwell:
  Unknown
Status in shotwell package in Ubuntu:
  Triaged

Bug description:
  1) Ubuntu version: Ubuntu 20.04 LTS

  2) shotwell package version: 0.30.10-0ubuntu0.1

  3) 
   a. I'm performing "Import from folder" from an external drive. 
   b. This external drive is formatted as HFS+, comes from a Mac, and by 
default it's mounted as read-only, which is OK.
   c. As result of the import, some files (both photos and videos) are imported 
ok, while some others don't.
   d. For those which are not imported, the error reported in the UI is "953 
photos/videos failed to import because the photo library folder was not 
writable", which doesn't make sense, as some others were imported.

  Looking further, I came to found in ~/.cache/shotwell/shotwell.log the
  following pattern:

  L 3733 2020-07-07 20:47:09 [WRN] BatchImport.vala:1840: Unable to perform MD5 
checksum on file <source-file>: Error opening file <source-file>: Permission 
denied
  L 3733 2020-07-07 20:47:09 [WRN] BatchImport.vala:1405: Import failure 
<source-folder>: File write error

  By checking the code, I see convert_error method maps several different error 
codes to ImportResult.FILE_WRITE_ERROR
  In particular, lines 124 and 125 map IOError.PERMISSION_DENIED to 
ImportResult.FILE_WRITE_ERROR

              else if (ioerr is IOError.PERMISSION_DENIED)
                  return ImportResult.FILE_WRITE_ERROR;

  But in this case, the permission denied came from the read, and not from the 
write.
  BTW: Permission denied has to do with different permissions for those files, 
so it's ok to not have been imported.

  4) It's ok for Shotwell to fail importing files without read
  permission, but the error message confuses the user, which may
  understand Shotwell library got corrupted (as on same operation some
  files were imported and some others don't). A better error message
  could be "953 photos/videos failed to import because permission was
  denied to read the source files"

To manage notifications about this bug go to:
https://bugs.launchpad.net/shotwell/+bug/1886732/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to