https://bugs.kde.org/show_bug.cgi?id=360196
Bug ID: 360196 Summary: can't open Kphotoalbum ("error reading next element"): found duplicate attributes in <image> tags in index.xml photos database Product: kphotoalbum Version: 4.7.1 Platform: Archlinux Packages OS: Linux Status: UNCONFIRMED Severity: grave Priority: NOR Component: XML backend Assignee: kpab...@willden.org Reporter: dper...@gmail.com Have being using Kphotoalbum since 4.6.x with the same database. Suddenly it stopped working (with that database), just don't initialize and an error window is displayed: ------------------------------------------------------------------------------------ Error while reading database file - KPhotoAlbum An error was encountered on line 187, column 315: Error reading next element Additional error information: Attribute redefined. ------------------------------------------------------------------------------------ Found the problem is <image> tags have the attribute "Media_.20Type" duplicated as in this example: <image file="201512fromMint17.2/Aut_0006.jpg" label="Aut_0006" startDate="1996-12-31T22:00:00" endDate="1996-12-31T22:00:00" angle="0" md5sum="d6805cb540e63b579dac94b7e058414b" width="640" height="480" Folder="0" Media_.20Type="0" Folder="117" Media_.20Type="2"> Reproducible: Always Steps to Reproduce: 1. Use my wrong database (which have all the <image> tags with the attribute "Media_.20Type" duplicated. 2. Try to open the program Actual Results: See the error. Being unable to use KPhotoAlbum, it automatically close with the error (no usable database indeed) Expected Results: Use KPhotoAlbum normally, but as the database is unreadable by the xml parser, might add some workaround: 1. A warning of the error in database found. 2. Options for the user: a. to repair the error b. to create a new database file xml parser fails because there is invalid xml: ------------------------------------------------------------------------------------ Error while reading database file - KPhotoAlbum An error was encountered on line 187, column 315: Error reading next element Additional error information: Attribute redefined. ------------------------------------------------------------------------------------ I found the problem is <image> tags have the attribute "Media_.20Type" duplicated as in this example: <image file="201512fromMint17.2/Aut_0006.jpg" label="Aut_0006" startDate="1996-12-31T22:00:00" endDate="1996-12-31T22:00:00" angle="0" md5sum="d6805cb540e63b579dac94b7e058414b" width="640" height="480" Folder="0" Media_.20Type="0" Folder="117" Media_.20Type="2"> -- You are receiving this mail because: You are watching all bug changes.