Bug#552018: Upgrading to grave

brian m. carlson sandals at crustytoothpaste.ath.cx
Mon Jan 25 22:17:29 UTC 2010


On Sun, Jan 24, 2010 at 09:22:33PM +0100, Daniel Leidert wrote:
> You can easily workaround that. Just write your own catalog with
> entries:

I have a better solution: a working resolver.  I did some looking into
the code, and I found the problem.  In Catalog.java, the method
addDelegate looks through the list of delegates already existing, so it
can put them in proper order by length (which is needed to determine the
best match).  If it finds an existing delegate with the same prefix, it
gives up:

	// we already have this prefix

However, it completely ignores the *type* of the delegate.  Therefore,
if a delegateSystem exists, and we attempt to add a delegateURI with the
same prefix, it assumes we already have it and gives up, wrongly.  This
also occurs with the delegates the other way around.  A patch is
forthcoming, which resolves the testcase you have provided in the Apache
bug report.

-- 
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/20100125/788fa499/attachment.pgp>


More information about the pkg-java-maintainers mailing list