reports read permission as "photo library folder was not writable"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Shotwell |
New
|
Unknown
|
|||
shotwell (Ubuntu) |
Triaged
|
Low
|
Unassigned |
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/
L 3733 2020-07-07 20:47:09 [WRN] BatchImport.
L 3733 2020-07-07 20:47:09 [WRN] BatchImport.
By checking the code, I see convert_error method maps several different error codes to ImportResult.
In particular, lines 124 and 125 map IOError.
else if (ioerr is IOError.
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: | ubuntuone-shotwell-plugin → shotwell |
Changed in shotwell: | |
status: | Unknown → New |
Thank you for your bug report, that seems to be an upstream issue, could you also report it on https:/ /gitlab. gnome.org/ GNOME/shotwell/ -/issues ?