[Digikam-devel] [digikam] [Bug 309058] The digiKam database can't be synchronized with XMP sidecars.

Kevin Dalley kevin at kelphead.org
Sat Nov 23 02:25:26 GMT 2013


https://bugs.kde.org/show_bug.cgi?id=309058

--- Comment #16 from Kevin Dalley <kevin at kelphead.org> ---
Here are my steps to reproduce a bug.

Under Configure=>Metadata, choose:
  Read from sidecar files
  Write to sidecar files

Choose an raw image.
Set the tag "Sidecar" for this image.
Under Caption/Tags,
For the tag "Sidecar"
Go to My Tags=>Properties
Change the title of this tag to "Sidecar-new"

The tag appears to change.
Examine the sidecar file, in my case 
~/Nikon/DCIM/106ND700/DSC_3148.NEF.xmp
Note the Sidecar is listed, rather than Sidecar-new

 <digiKam:TagsList>
    <rdf:Seq>
     <rdf:li>Sidecar</rdf:li>
    </rdf:Seq>
   </digiKam:TagsList>

   <MicrosoftPhoto:LastKeywordXMP>
    <rdf:Seq>
     <rdf:li>Sidecar</rdf:li>
    </rdf:Seq>
   </MicrosoftPhoto:LastKeywordXMP>

  <lr:hierarchicalSubject>
    <rdf:Bag>
     <rdf:li>Sidecar</rdf:li>
    </rdf:Bag>

   <dc:subject>
    <rdf:Bag>
     <rdf:li>Sidecar</rdf:li>
    </rdf:Bag>
   </dc:subject>

Now, go to
Image=>Reread Metadata From Image
Both tags now appear in digikam, "Sidecar" and "Sidecar-new"

The sidecar file still only has "Sidecar".
Click on Image=>Write Metadata to Image

Now the sidecar file contains both tags.

However, if you reverse the order of the steps,
Click on Image=>Write Metadata to Image
Image=>Reread Metadata From Image

then everything is OK.
After clicking on Image=>Write Metadata to Image
the sidecar file looks fine.

This suggests  a solution to the problem,
which I will examine later.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list