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 750762 - Entity references disappear after recovering from well-formedness errors
Entity references disappear after recovering from well-formedness errors
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
git master
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-11 07:58 UTC by Igor Ignatyuk
Modified: 2021-07-05 13:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to the version 2.9.2 (created with WinMerge) (58 bytes, text/plain)
2015-06-11 08:02 UTC, Igor Ignatyuk
Details

Description Igor Ignatyuk 2015-06-11 07:58:58 UTC
If a non-well-formed document is parsed with the XML_PARSE_RECOVER option, entity references disappear after recovering:

xmlSaveFile("output.xml", xmlReadFile("input.xml", 0, XML_PARSE_RECOVER));

input.xml:

<?xml version="1.0"?>
<a>x&lt;y&gt;z<b></c><c></b>x&lt;y&gt;z</a>

output.xml:

<?xml version="1.0"?>
<a>x&lt;y&gt;z<b/><c/>xyz</a>

(Version 2.9.2)
Comment 1 Igor Ignatyuk 2015-06-11 08:02:45 UTC
Created attachment 305048 [details]
Patch to the version 2.9.2 (created with WinMerge)
Comment 2 GNOME Infrastructure Team 2021-07-05 13:25:34 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/libxml2/-/issues/

Thank you for your understanding and your help.