[KPhotoAlbum] Keywords with id=0?

Johannes Zarl-Zierl johannes at zarl-zierl.at
Sat Dec 14 23:49:51 GMT 2019

Just in case some people want to check their database for duplicates, here's a 
quick and dirty script to do it:

xsltproc categoryIds.xslt index/latest-index.xml | sort | uniq -c |\
 grep -v '^ *1 '

Am Sonntag, 15. Dezember 2019, 00:46:26 CET schrieb Johannes Zarl-Zierl:
> Am Samstag, 14. Dezember 2019, 22:45:57 CET schrieb Robert Krawitz:
> > I'm seeing that somehow my index.xml has an item with id=0.  I'm not
> > quite sure how it happened; I know I was using the preferences dialog
> > to add a new member-group and then I created more member-groups under
> > that.
> I can see several categories with id="0" as well. Checking my index.xml
> backups it seems to be a long-standing issue: the first category with id=0
> was introduced in my index.xml in May 2017. By itself, though that should
> not really be a problem (AFAICS id 0 is not handled specially compared to
> other index numbers).
> What concerns me more though, is that categories with id=0 are duplicated. I
> see the first instance of a duplicate id in December 2017. It can't be
> triggered by routine operations, or I would expect to see far more
> duplicates.
> So, two questions arise:
>  - What is the cause for the bug?
>  - How can we help users recover from this?
>   Johannes
> _______________________________________________
> KPhotoAlbum mailing list
> KPhotoAlbum at mail.kdab.com
> https://mail.kdab.com/mailman/listinfo/kphotoalbum

-------------- next part --------------
A non-text attachment was scrubbed...
Name: categoryIds.xslt
Type: application/xslt+xml
Size: 396 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20191215/ee3b521d/attachment.xslt>

More information about the Kphotoalbum mailing list