Bug#552018: Upgrading to grave

brian m. carlson sandals at crustytoothpaste.ath.cx
Thu Dec 24 01:01:31 UTC 2009


severity 552018 grave
kthxbye

I'm upgrading this bug report to grave, because I've done more tests
and it seems that this bug causes the resolver to produce bizarre,
inconsistent results and makes it unsuitable for a stable release.

For example, no matter what order I put the delegateURI and
delegateSystem elements in, at least one of them does not work:

<?xml version="1.0" encoding="UTF-8" ?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
	<uri name="http://www.w3.org/2001/xml.xsd"
		uri="file:///home/bmc/share/xml/schemata/xml/xml.xsd" />
	<rewriteURI uriStartString="http://docbook.sourceforge.net/release/images/"
		rewritePrefix="http://docbook.sourceforge.net/release/xsl/current/images/" />
	<delegateSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl-ns/" catalog="file:///home/bmc/share/xml/stylesheets/docbook-xsl-ns/catalog.xml"/>
	<delegateURI uriStartString="http://docbook.sourceforge.net/release/xsl-ns/"
		catalog="file:///home/bmc/share/xml/stylesheets/docbook-xsl-ns/catalog.xml"/>

	<nextCatalog catalog="xhtml1.xml" />
	<nextCatalog catalog="file:///etc/xml/catalog" />
</catalog>

With System before URI:

lakeview ok % java -cp /usr/share/java/xml-commons-resolver-1.1.jar:/etc/xml/resolver org.apache.xml.resolver.apps.resolver -c ~/.crustytoothpaste/groups/metadata/xml-catalogs/catalog.xml -s http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/docbook.xsl system
Resolve SYSTEM (systemid):
  system id: http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/docbook.xsl
Result: file:/home/bmc/share/xml/stylesheets/docbook-xsl-ns/xhtml/docbook.xsl
lakeview ok % java -cp /usr/share/java/xml-commons-resolver-1.1.jar:/etc/xml/resolver org.apache.xml.resolver.apps.resolver -c ~/.crustytoothpaste/groups/metadata/xml-catalogs/catalog.xml -u http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/docbook.xsl uri
Resolve URI (uri):
        uri: http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/docbook.xsl
Result: file:/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/xhtml/docbook.xsl

With URI before System:

lakeview ok % java -cp /usr/share/java/xml-commons-resolver-1.1.jar:/etc/xml/resolver org.apache.xml.resolver.apps.resolver -c ~/.crustytoothpaste/groups/metadata/xml-catalogs/catalog.xml -s http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/docbook.xsl system
Resolve SYSTEM (systemid):
  system id: http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/docbook.xsl
Result: null
lakeview ok % java -cp /usr/share/java/xml-commons-resolver-1.1.jar:/etc/xml/resolver org.apache.xml.resolver.apps.resolver -c ~/.crustytoothpaste/groups/metadata/xml-catalogs/catalog.xml -u http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/docbook.xsl uri
Resolve URI (uri):
        uri: http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/docbook.xsl
Result: file:/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/xhtml/docbook.xsl

Three out of four of these are wrong.  A null lookup is not correct, and
using the version in /usr/share/xml is also incorrect[0], according to
this catalog.

[0] Having a private version is necessary until #562227 is fixed.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20091224/28e6ff53/attachment.pgp>


More information about the pkg-java-maintainers mailing list