Bug 264715 - Duplicate Tags after each reboot
Summary: Duplicate Tags after each reboot
Status: RESOLVED DUPLICATE of bug 257674
Alias: None
Product: nepomuk
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-29 09:30 UTC by Michael Tils
Modified: 2012-05-22 16:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Tags before reboot (already duplicates in there) (55.02 KB, image/jpeg)
2011-01-29 09:30 UTC, Michael Tils
Details
Tags after reboot (even more duplicates) (57.01 KB, image/jpeg)
2011-01-29 09:31 UTC, Michael Tils
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Tils 2011-01-29 09:30:41 UTC
Created attachment 56604 [details]
Tags before reboot (already duplicates in there)

Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

Everytime I reboot, the same tags from my addressbook are added again.
At KDE 4.5 I had the same problem. The tags from my addressbook was shown in Dolphin/Nepomuk and I often noticed that the same tags are 2-20 times in Dolphins tag widget and Gwenviews taglist.
Now after installing 4.6 the problem remains the same. I investigated it a little. After each reboot the tags are duplicated even more and more after each reboot.
This is what I found out:
-Only Tags from addressbook are in duplicates. I have one Tag which I only use in dolphin named "Aktuell", this appears only one time no matter how often the others appear
-The "multiplying problem" only appears on reboot(logout?). I manually restarted akonadi, resynchronized Nepomuk Contact Feeder, the Personal Contacts Resource and restarted Nepomuk a few times and the tags didn't duplicate themselves. So the problem appears after reboot.

I added two screenshots before and after reboot.

Reproducible: Always

Steps to Reproduce:
1. Start KDE with akonadi.
2. Look at your tags
3. Restart your computer
4. In dolphin: look at your tags and there are duplicates
(I really doubt that everyone has this problem, because I didn't find reports)

Actual Results:  
duplicate Tags

Expected Results:  
No duplicate tags ;-)
Comment 1 Michael Tils 2011-01-29 09:31:42 UTC
Created attachment 56605 [details]
Tags after reboot (even more duplicates)
Comment 2 Paul Worrall 2011-01-29 11:36:17 UTC
Same problem here, I have 63 "Personal" and "Business" tags, but many other tags that are not duplicated.  Installed from Kubuntu debs.
Comment 3 Michael Tils 2011-02-09 11:13:39 UTC
I noticed, that the number of duplicate tags is connected to the amount of contacts with that category. To me it seems that nepomuk_contact_feeder adds every reboot for every contact with that category a tag.
Example: I have 3 contacts with category "Privat:Freunde" and a lot with "Geschäftlich:IT", so after a few reboots I have 3 "Privat:Freunde" tags in nepomuk and a lot of "Geschäftlich:IT" tags.
I don't know anything about coding in C/C++, but in other languages. If would guess there is a duplicate detection in nepomuk_contact_feeder like:

knownCats = []
for contact in contacts:
    for category in contact:
         if not knownCats.contains(category):
             nepomuk.add(category)
             knownCats.add(category)

And after a reboot the array is empty...just guessed
Comment 4 Paul Worrall 2011-02-11 12:08:29 UTC
Appears to be a duplicate of bug 257674
Comment 5 Michael Tils 2011-02-11 22:30:11 UTC
Yes, this is a duplicate of bug 257674
Comment 6 Vishesh Handa 2012-05-22 16:15:23 UTC

*** This bug has been marked as a duplicate of bug 257674 ***