Bug 415614 - .kmy file contains invalid characters
Summary: .kmy file contains invalid characters
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: file (show other bugs)
Version: 5.0.7
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-27 16:28 UTC by Alan Prescott
Modified: 2019-12-28 21:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
ralf.habacker: Backport-


Attachments
QXMLEdit Error (82.86 KB, image/png)
2019-12-27 16:30 UTC, Alan Prescott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Prescott 2019-12-27 16:28:25 UTC
I wanted to examine my .kmy data file with a view to possibly being able to do bulk edits on tags etc.
I gunzipped the .kmy file to produce what I expected to be a stock xml file and tried to open and examine it.
QXMLEdit reported an error when I tried opening the xml file (error message attached as qxmledit_error.png)
KDE's kate reported an error and trying to read the xml file in Python3 using xml.etree.ElementTree module reported an error at the same place as QXMLEdit.
Examining the line reported in error I have found that there is a character 0 embeded in this line at the position shown in qxmledit_error.png (i.e. between the 'k' and the double quote).

I should report that kmymoney works perfectly well with the original .kml file but you may want to be aware of this in case invalid characters like this cause problems further down the line.
Comment 1 Alan Prescott 2019-12-27 16:30:59 UTC
Created attachment 124741 [details]
QXMLEdit Error

Sorry, forgot to attach the screenshot - here it is