Bug 315269 - Tag "_Digikam_root_tag_" is handled strangely (almost like duplicated in hierachy) on importing existing collection
Summary: Tag "_Digikam_root_tag_" is handled strangely (almost like duplicated in hier...
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Engine (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-16 13:08 UTC by Sven
Modified: 2022-01-22 14:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven 2013-02-16 13:08:45 UTC
As my mysql db was nuked by digikam (was a beta, so no blame here) i was happy to have most tags in my pictures - chosing this for robustness seems to have been a good idea.

clearing the database and adding the collections again gives the fail.

I'd conclude that the TagsList format on import is different than the one that is written on export.

When i move all my 4 1st level childs to the highest visible tag level, selecting the visible _Digikam_root_tag_ still shows all my 20k pictures, if sub-tags are selected to be viewn.

Reproducible: Always

Steps to Reproduce:
1. Create some nice tag hierarchy, with tagged pictures
2. make sure the tags are written to the pictures
3. import to new/fresh digikam 3.0.0 (same in the betas and -rc)
Actual Results:  
All Tags are a child of _Digikam_root_tag_ in the visible tag tree.

As all visible tags in the tree are already a child of _Digikam_root_tag_, this is wrong and/or at least confusing. Trying to work within the new _Digikam_root_tag_ fails aswell, as all future tags will be under two levels of _Digikam_root_tag_
_Digikam_root_tag_,_Digikam_root_tag_,People,friends,tom

Expected Results:  
Digikam should know how itself wrote its internal tags to pictures, so when imported its not broken.

running in latest version (3.0.0 tarball) - importing older pictures
tag example:
digikam(4699)/KEXIV2 KExiv2Iface::KExiv2::getXmpTagStringSeq: XMP String Seq ( Xmp.digiKam.TagsList ):  ("_Digikam_root_tag_/Places/amerika/usa/ft. lauderdale")
Comment 1 Sven 2013-02-16 13:12:03 UTC
After moving the main tags one level up and deleting the visible _digikam_root_tag_ all tags are gone - the moved out tags just aren't assigned to any pictures - at least explains why all pictures still were under the wrongly visible _digikam_root_tag
Comment 2 Sven 2013-02-17 09:30:11 UTC
was most likely due to having some _digikam_root_tag_ in the picutures in the first place... which then caused doublication of this. But under normal circumstances this should not happen.
Comment 3 e.longuemare 2013-02-24 17:20:46 UTC
Hello,

I think it's related to this bug:

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

There's a solution there too, but this not will be totally agree by those who have a hudge "tag" work before. 

Greatings,

Eric

PS : there is an interesting topic on tags management on digikam users list about tags management - What is being/will be done about the tags management problem? -> What is being/will be done about the tags management problem?
https://mail.kde.org/mailman/listinfo/digikam-users