Bug 398331 - xmp sidecar files are not reloaded on change
Summary: xmp sidecar files are not reloaded on change
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Sidecar (show other bugs)
Version: 6.0.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-06 17:11 UTC by Daniel Laidig
Modified: 2018-09-13 19:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Laidig 2018-09-06 17:11:53 UTC
I set up digikam to write metadata only to xmp sidecar files and also checked "Rescan file when files are modified". However, changes in xmp sidecar files are not detected (not when digiKam is running and also not when restarting it).

Reloading metadata works when the actual image is changed:
exiv2 -M"set Xmp.xmp.Rating 3" IMG.JPG
-> Rating is instantly updated in digiKam.

When setting a rating in digikam and then using a text editor to change xmp:Rating in the xmp sidecar, the rating is not updated automatically. When triggering "Reread Metadata From File" manually or running "touch IMG.JPG", the rating is updated.

Due to the last observation I would guess that the mtime of the xmp file is currently not stored in the database.

Fixing this would make interoperability with other applications so much better.

(tested using the 6.0.0-beta1 AppImage, but also previously observed with 5.9.0)
Comment 1 Maik Qualmann 2018-09-06 18:07:52 UTC
This is a duplicate of bug 397340 and bug 339342. Yes, the sidecar file is not stored in the database, we can not know if it has changed.

Maik
Comment 2 Daniel Laidig 2018-09-06 19:27:00 UTC
Sorry, I tried to search for duplicates, but apparently not using the right terms. Is there are reason you didn't mark this bug as a duplicate?
Comment 3 Maik Qualmann 2018-09-13 19:51:21 UTC
Git commit 9c77203fdc10cd59aa0ba645ab3fde7f774dbaf2 by Maik Qualmann.
Committed on 13/09/2018 at 19:47.
Pushed by mqualmann into branch 'master'.

store as modification date always the most recent from the image or the sidecar
Related: bug 397340, bug 380341, bug 339342
FIXED-IN: 6.0.0

M  +5    -2    NEWS
M  +14   -1    core/libs/database/collection/collectionscanner.cpp
M  +14   -1    core/libs/database/item/imagescanner.cpp

https://commits.kde.org/digikam/9c77203fdc10cd59aa0ba645ab3fde7f774dbaf2