[PostGIS] #5662: XML parser breaks for RHEL systems

PostGIS trac at osgeo.org
Wed Jan 31 12:50:11 PST 2024


#5662: XML parser breaks for RHEL systems
---------------------+----------------------------
 Reporter:  pramsey  |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 3.0.11
Component:  postgis  |    Version:  master
 Keywords:           |
---------------------+----------------------------
 A security update to libxml2 has as a side effect changed the behaviour of
 the SAX1 parser when dealing with XML documents that have name spaces
 (which is all the XML documents we deal with, though some are XML
 fragments without an "ns" attribute.


 https://gitlab.gnome.org/GNOME/libxml2/-/issues/535
 https://access.redhat.com/errata/RHSA-2024:0119

 Because the OS is changing underneath us, we have no real choice except to
 conform our code to the new libxml behaviour. The most "future proof" way
 is to stop forcing use of the SAX1 parser in our code, and instead use the
 default parser. This slightly "modernizes" our use of libxml and hopefully
 avoids any further future issues that might come from our dependence on
 SAX1.

 Fixes will have to be applied back through all versions we want to retain
 XML handling on RHEL systems. RHEL might eventually fix the SAX1
 behaviour, but we have no idea if or when that will happen, so our change
 is required.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5662>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list