GNOME Bugzilla – Bug 152227
__xmlRaiseError: Possible loss of info about the originally given node
Last modified: 2021-07-05 13:22:41 UTC
If necessary, __xmlRaiseError walks up the tree - starting from the given node - to obtain the line number; doing this the original node is changed. Only this changed node is passed further to the user. This mechanism should be expanded let the user still get hold of the original node via the xmlError struct.
*** Bug 152228 has been marked as a duplicate of this bug. ***
[10:38] <cazic> DV: would this be enough? __xmlRaiseError seems to convert a given attr node to its parent elem node [10:39] <DV> ouch, touching that code affects everything [10:40] <cazic> DV: that's why I asked if we should add an error handler special for the schemata [10:41] <DV> cazic: I would rather 1/ add a subnode in xmlError structure 2/ make sure the attribute if passed is stored in subnode, but the node one doesn't change [10:41] <DV> i.e. it won't break existing code but allow finer grained error reporting [10:42] <DV> and it works globally [10:43] <DV> could you bugzilla the loss of information in __xmlRaiseError, I will handle it
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.