Bug 1153753 - libxml2: xmlcatalog corrupts the catalog
Summary: libxml2: xmlcatalog corrupts the catalog
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: libxml2
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-16 17:31 UTC by Lubomir Rintel
Modified: 2016-07-19 12:13 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 12:13:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lubomir Rintel 2014-10-16 17:31:24 UTC
Description of problem:

xmlcatalog loads the wrong catalog, overwriting the correct one with it:

bash-4.3# XML_DEBUG_CATALOG=1 /usr/bin/xmlcatalog --noout --add public '-//OASIS//DTD DocBook XML V4.1.2//EN' /usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd /usr/share/sgml/docbook/xmlcatalog
25224960 Parsing catalog file:///etc/xml/catalog
file:///etc/xml/catalog added to file hash
Adding element public to catalog
Catalogs cleanup
Free catalog entry http://www.w3.org/2001/xml.xsd
Free catalog entry http://www.w3.org/2009/01/xml.xsd
Free catalog entry http://www.w3.org/2001/xml.xsd
Free catalog entry http://www.w3.org/2009/01/xml.xsd
Free catalog entry -//OASIS//ENTITIES DocBook XML
Free catalog entry -//OASIS//DTD DocBook XML
Free catalog entry ISO 8879:1986
Free catalog entry http://www.oasis-open.org/docbook/
Free catalog entry http://www.oasis-open.org/docbook/
Free catalog entry -//OASIS//DTD DocBook XML V4.1.2//EN
Free catalog entry file:///etc/xml/catalog
Free catalog entry
Free catalog entry
bash-4.3# 

Should not load /etc/xml/catalog!

Version-Release number of selected component (if applicable):

libxml2-2.9.2-1.fc22.x86_64

Additional info:

This is the faulty commit:

https://mail.gnome.org/archives/commits-list/2014-February/msg02752.html

You should not call xmlInitializeCatalog() as it loads the default catalog. I think tt's called lazily when needed. However, sometimes it's not desirable, as in xmlLoadCatalog(), where xmlInitializeCatalogData() is used instead.

Comment 1 Lubomir Rintel 2014-10-16 17:36:29 UTC
I've reverted the patch in Rawhide, as it causes corruption to the catalogs only fixable by reinstall and breaks my build: https://kojipkgs.fedoraproject.org//work/tasks/3763/7883763/build.log

Please have a look and eventually fix in a way you prefer.

Thank you.

Comment 2 Jaroslav Reznik 2015-03-03 16:22:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 3 Fedora End Of Life 2016-07-19 12:13:53 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.