After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 637536 - Open external note file fails
Open external note file fails
Status: RESOLVED NOTABUG
Product: gnote
Classification: Applications
Component: main
git master
Other Linux
: Normal normal
: ---
Assigned To: gnote-maint
gnote-maint
Depends on:
Blocks:
 
 
Reported: 2010-12-18 21:15 UTC by Aurimas Černius
Modified: 2012-06-19 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Aurimas Černius 2010-12-18 21:15:43 UTC
The following command

gnote --open-note=<note_file>

succeeds only when opening a note, that is in Gnote collection of notes. If it's an external file, gnote fails to read it with error message, similar to this:

Entity: line 8: parser error : Extra content at the end of the document
Comment 1 Pierre-Yves Luyten 2011-07-19 13:46:24 UTC
The error happens at libxml2 usage in gnote.cpp, 

  xmlDocPtr doc = xmlParseDoc((const xmlChar*)noteXml.c_str());

The xmlParseDoc displays the parser error. 
Actually, this noteXml argument comes from a read_to_rend method in streamreader.cpp. This read_to_end method puts extra content at the end of noteXml but I can't understand yet the issue more precisely.
Comment 2 Aurimas Černius 2012-06-19 16:09:33 UTC
I can no longer reproduce this bug, wokrs as expected.