Library directory can be set to subdirectory during import
Submitted by Jim Nelson
Link to original bug (#718920)
Description
---- Reported by jim@yorba.org 2013-04-01 13:24:00 -0700 ----
Original Redmine bug id: 6722
Original URL: http://redmine.yorba.org/issues/6722
Searchable id: yorba-bug-6722
Original author: Jim Nelson
Original description:
While attempting to reproduce the problem reported in #6108, another problem with the library directory was discovered. Under certain circumstances, it's possible for the library directory to be set (without user intervention) to one of its subdirectories during an import. From #6108:
mkdir /.shotwell_testing
mkdir ~/Desktop/shotwell_testing_lib
shotwell --no-runtime-monitoring --datadir=/.shotwell_testing # I don't think the no runtime monitoring is necessary
then set your import directory in shotwell to ~/Desktop/shotwell_testing_lib
then import two photos, one from 2013 and one from 2012
then go back to preferences and see that the directory is displayed as "(none)" (I think it is still importing to the correct directory at this point though), then if you use the dropdown and select other because of the way autocomplete works there it will set the import directory to ~/Desktop/shotwell_testing_lib/201 which does not exist, and then if you import another picture it will drop it inside ~/Desktop/shotwell_testing_lib/201/YYYY/MM/DD
I reproduced a similar problem following these steps more or less. It happened with runtime monitoring enabled and copying the files into the library (not an "in place" import) from a separate directory. In that case, they imported as:
L 4723 2013-04-01 11:43:39 [DBG] BatchImport.vala:1937: Importing /home/jim/Desktop/shotwell_testing_lib/2009/2010/06/04/IMG_8723.JPG
L 4723 2013-04-01 11:43:39 [DBG] BatchImport.vala:1937: Importing /home/jim/Desktop/shotwell_testing_lib/2009/2009/02/24/IMG_0600.JPG
Note the additional 2009 in the path. The library directory was empty when I set it to ~/Desktop/shotwell_testing_lib.
Related issues:
- related to shotwell - 6108: Library directory can become "unset" causing Hardware Err... (Open)
---- Additional Comments From shotwell-maint@gnome.bugs 2013-05-16 14:32:00 -0700 ----
History
Comment 1
Updated by Jim Nelson 6 months ago
-
Target version deleted (
<strike>
_0.15.0_</strike>
)
--- Bug imported by chaz@yorba.org 2013-11-25 21:59 UTC ---
This bug was previously known as bug 6722 at http://redmine.yorba.org/show_bug.cgi?id=6722
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