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 664525 - BUG on function xmlSchemaValidateOneElement of Xmlschema.c
BUG on function xmlSchemaValidateOneElement of Xmlschema.c
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: xmlschema
git master
Other All
: Normal major
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2011-11-22 01:55 UTC by Shiwei_Hu
Modified: 2021-07-05 13:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Shiwei_Hu 2011-11-22 01:55:23 UTC
Deer Daniel:
     Recently, I find the function xmlSchemaValidateOneElement behaves in the same way as function xmlSchemaValidateDoc which validates the xml doc from the root element. 
     While looking up the source code, I find that function xmlSchemaVDocWalk which has been indirectly called by function xmlSchemaValidateOneElement resets element validationRoot of struct xmlSchemaValidCtxtPtr vctxt(line 27800 in xmlSchemas.c under version 2.7.8). However the  validationRoot element has been initalized as the specified xml doc element by xmlSchemaValidateOneElement(line 28079 in xmlSchemas.c under version 2.7.8). 
     The content of URL http://mail.gnome.org/archives/xml/2009-May/msg00016.html indicates that after removing clause:

vctxt->validationRoot = valRoot;

function xmlSchemaValidateOneElement gets a desire results.

Could you please fix the bug (I think it is) in the next release?
Comment 1 GNOME Infrastructure Team 2021-07-05 13:26:03 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.