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 326605 - Bad validation external entities with namespace declared in master document
Bad validation external entities with namespace declared in master document
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
2.6.22
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-11 14:34 UTC by Jiri Netolicky
Modified: 2021-07-05 13:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to this bug (1.33 KB, patch)
2006-01-11 14:37 UTC, Jiri Netolicky
none Details | Review
Some xml files to show this bug (2.59 KB, application/gzip)
2006-01-11 14:41 UTC, Jiri Netolicky
  Details
Simplier example of this bug (1.02 KB, application/octet-stream)
2006-02-24 13:56 UTC, Jiri Netolicky
  Details

Description Jiri Netolicky 2006-01-11 14:34:19 UTC
When I include xml document into another one as external entity, the namspace of parent element is not "propagate" to "externalExtity parser".
Comment 1 Jiri Netolicky 2006-01-11 14:37:08 UTC
Created attachment 57157 [details] [review]
Patch to this bug

Please test carefully this patch because I am not "rock solid" in XML. Thanks
Comment 2 Jiri Netolicky 2006-01-11 14:41:25 UTC
Created attachment 57158 [details]
Some xml files to show this bug

In the direcotory "orig" a original xml a DTD files wich are not valid. When a I remove namespaces (directory  without_ns) the document is valid. When I manualy replace extrenal entity with content of include file (directory manual_include) the document is valid.
Comment 3 Jiri Netolicky 2006-02-24 13:56:44 UTC
Created attachment 60064 [details]
Simplier example of this bug
Comment 4 Daniel Veillard 2007-06-12 12:11:19 UTC
The patch is very buggy, looks like a memory corruptor, basically
ctx->nsTab could be reallocated when grown up, and the original
context would still use the old pointer.

Namespace and DTDs and external parsed entities really don't mix well
together. This is a libxml2 bug but fixing it would require major work
not a 3 line patch really.

Daniel
Comment 5 GNOME Infrastructure Team 2021-07-05 13:26:16 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.