Public bug reported: 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" ** Affects: shotwell (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1886732 Title: Shotwell fails to import and wrongly reports "photo library folder was not writable" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1886732/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs