--- Begin Message ---
Package: python-4suite-xml
Version: 1.0~rc4cvs20061016-1
Severity: normal
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Validating a simple DocBook file offline fails as local catalog resolving is
broken:
$ XML_CATALOG_FILES=/etc/xml/catalog 4xml article.xml
...
UriException: Error retrieving resource
u'http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd': <urlopen error (-3,
'Temporary failure in name resolution')>
Attached:
- - Example DocBook file: article.xml
- - Stderr output of command: 4xml.err
- - Patch: Catalog.py.diff
Regards, Andreas Hoenen
- --
Andreas Hoenen <[EMAIL PROTECTED]>
GPG: 1024D/B888D2CE
A4A6 E8B5 593A E89B 496B
82F0 728D 8B7E B888 D2CE
- -- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-k7
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Versions of packages python-4suite-xml depends on:
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii python 2.4.4-1 An interactive high-level object-o
ii python-central 0.5.12 register and build utility for Pyt
ii python-xml 0.8.4-5 XML tools for Python
Versions of packages python-4suite-xml recommends:
ii python-4suite-doc 0.99cvs20060405-1.1 Documentation for 4Suite
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFdItrco2LfriI0s4RAsYjAJ9miub3ZW3HaJCvixiqM0QSnkw3iQCgslHF
HRUxgTv4gbx2MmGgBaufSSM=
=fxIO
-----END PGP SIGNATURE-----
article.xml
Description: application/xml
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/Ft/Xml/_4xml.py", line 59, in Run
doc = reader.parse(source_isrc)
File "/usr/lib/python2.4/site-packages/Ft/Xml/Domlette.py", line 151, in parse
return self.parseMethod(inputSource, *self.args, **self.kwargs)
File "/usr/lib/python2.4/site-packages/Ft/Xml/InputSource.py", line 162, in
resolveEntity
return self._resolve(systemId, None, hint)
File "/usr/lib/python2.4/site-packages/Ft/Xml/InputSource.py", line 215, in
_resolve
stream = self._openStream(uri, ignoreErrors, hint)
File "/usr/lib/python2.4/site-packages/Ft/Xml/InputSource.py", line 247, in
_openStream
return self.getUriResolver().resolve(uri)
File "/usr/lib/python2.4/site-packages/Ft/Lib/Uri.py", line 995, in resolve
uri=uri, loc=uri, msg=str(e))
UriException: Error retrieving resource
u'http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd': <urlopen error (-3,
'Temporary failure in name resolution')>
Traceback (most recent call last):
File "/usr/bin/4xml", line 6, in ?
status = Ft.Xml._4xml.XmlCommandLineApp.main()
File "/usr/lib/python2.4/site-packages/Ft/Lib/CommandLine/CommandLineApp.py",
line 83, in main
return cls().run(script_name, script_args)
File "/usr/lib/python2.4/site-packages/Ft/Lib/CommandLine/CommandLineApp.py",
line 105, in run
cmd.run_command(self.authenticationFunction)
File "/usr/lib/python2.4/site-packages/Ft/Lib/CommandLine/Command.py", line
110, in run_command
self.function(self.clOptions, self.clArguments)
File "/usr/lib/python2.4/site-packages/Ft/Xml/_4xml.py", line 59, in Run
doc = reader.parse(source_isrc)
File "/usr/lib/python2.4/site-packages/Ft/Xml/Domlette.py", line 151, in parse
return self.parseMethod(inputSource, *self.args, **self.kwargs)
File "/usr/lib/python2.4/site-packages/Ft/Xml/InputSource.py", line 162, in
resolveEntity
return self._resolve(systemId, None, hint)
File "/usr/lib/python2.4/site-packages/Ft/Xml/InputSource.py", line 215, in
_resolve
stream = self._openStream(uri, ignoreErrors, hint)
File "/usr/lib/python2.4/site-packages/Ft/Xml/InputSource.py", line 247, in
_openStream
return self.getUriResolver().resolve(uri)
File "/usr/lib/python2.4/site-packages/Ft/Lib/Uri.py", line 995, in resolve
uri=uri, loc=uri, msg=str(e))
Ft.Lib.UriException: Error retrieving resource
u'http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd': <urlopen error (-3,
'Temporary failure in name resolution')>
--- /usr/share/pycentral/python-4suite-xml/site-packages/Ft/Xml/Catalog.py
2006-08-12 17:56:22.000000000 +0200
+++
/usr/share/pycentral/python-4suite-xml/site-packages/Ft/Xml/Catalog.py.patched
2006-12-04 20:58:05.000000000 +0100
@@ -460,7 +460,7 @@
self.systemRewrites.append(rewriteRule)
elif name == 'delegateSystem':
# delegate systemId to specific catalog
- if self.__ensure_attrs(name, attrs, 'systemIdStartString',
'catalog '):
+ if self.__ensure_attrs(name, attrs, 'systemIdStartString',
'catalog'):
startString = attrs[(None, 'systemIdStartString')]
catalog = Uri.Absolutize(attrs[(None, 'catalog')], base)
delegate = Catalog(catalog, self.quiet)
@@ -469,7 +469,7 @@
elif name == 'delegatePublic':
# delegate publicId to specific catalog
- if self.__ensure_attrs(name, attrs, 'publicIdStartString',
'catalog '):
+ if self.__ensure_attrs(name, attrs, 'publicIdStartString',
'catalog'):
# save the state of prefer_public also
startString = attrs[(None, 'publicIdStartString')]
catalog = Uri.Absolutize(attrs[(None, 'catalog')], base)
@@ -479,7 +479,7 @@
self.publicDelegates.append(delegateRule)
elif name == 'delegateURI':
# delegate URI to specific catalog
- if self.__ensure_attrs(name, attrs, 'uriStartString', 'catalog '):
+ if self.__ensure_attrs(name, attrs, 'uriStartString', 'catalog'):
startString = attrs[(None, 'uriStartString')]
catalog = Uri.Absolutize(attrs[(None, 'catalog')], base)
delegate = Catalog(catalog, self.quiet)
--- End Message ---