Opened 9 months ago
Closed 9 months ago
#5662 closed defect (fixed)
XML parser breaks for RHEL systems
Reported by: | pramsey | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 3.0.11 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
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.
Change History (8)
comment:1 by , 9 months ago
comment:8 by , 9 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In a3df807/git: