Bug 326112 - SCAN : Moving an album (directory) loses metadata for cr2 files
Summary: SCAN : Moving an album (directory) loses metadata for cr2 files
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: 3.2.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-16 20:00 UTC by Kenneth Ingham
Modified: 2017-07-25 10:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.3.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ingham 2013-10-16 20:00:39 UTC
I just spent a bunch of time tagging and captioning images.  Once done, I used a drag and drop operation from one digikam window to another to move the album(directory) from the "needs tagging" directory to the "done" directory.  All of the metadata associated with the .cr2 files disappeared.   This means that the metadata associated with the raw files is now gone.  Unfortunately, there's no metadata copy function in Digikam up to this version.  I used Digikam to do the move because I had expected it would move the metadata in the database, but that did not occur (it used to).

Reproducible: Always

Steps to Reproduce:
1. Tag images of different types (including raw files) in an album(directory)
2. Move album from one location to another
3. Look at the metadata after the move.
Actual Results:  
Metadata associated with .cr2 files disappeared.  Most, but not all, of the metadata was stored in the .xmp file, which helped me recover.  It's weird that some metadata appears completely gone.

Expected Results:  
Metadata should have been transferred with all files.

OpenSUSE 12.3
digikam-3.2.0-1.83.3.x86_64 from OpenSUSE repository
Comment 1 Marcel Wiesweg 2013-10-19 14:10:37 UTC
Are you saying that the .cr2 files on disk disappeared, or did only the relevant information in the database disappear and the files are there?
Comment 2 Kenneth Ingham 2013-10-19 19:23:37 UTC
The information in the database disappeared.  The files were moved, but now they have no metadata associated with them.

At first, I was also concerned that the .xmp files were not copied, but that was a mistake on my part.  That is why I changed the subject.

So, no files were lost, just all the metadata I had entered.  And, there's no simple way of recovering because there is no copy and paste metadata that I have been able to find.
Comment 3 Marcel Wiesweg 2013-10-20 13:22:13 UTC
My first idea is that the collection scanner scans the main file before the sidecar has been copied. Though I thought that sidecars will be copied prior to the main file. Nonetheless, there are numerous issues related to premature scanning.
Comment 4 Kenneth Ingham 2013-10-23 16:29:07 UTC
I went back to the directory and took a look.  Today (several days after the move), many of the .cr2 files have metadata.  Oddly, some are complete and some are only partial.  I selected all .cr2 files and did a "read metadata from files to database" and nothing changed.  What was missing was the "Title" field and some tags. The caption was always there, and, oddly, some of the tags were and some were not.  It is easy to tell because I could compare to the JPEG that is right beside the .cr2 and was labeled ant tagged at the same time.
Comment 5 caulier.gilles 2014-08-28 16:20:15 UTC
Kenneth,

This file still valid using last digiKam 4.2.0 ?

Gilles Caulier
Comment 6 Kenneth Ingham 2014-08-29 19:52:45 UTC
Using Digikam 4.2.0 on openSUSE 13.1, it appears that the metadata moved properly.
Comment 7 caulier.gilles 2014-08-29 20:57:01 UTC
Ok, thanks for the feedback

Gilles Caulier