Hi,

I fixed a bug in Cocoon's ZipSource lately and added a test case for it [1].
Unfortunately for people on Mac OS X this test failed - actually not due to
ZipSource but Excalibur's FileSource.

The test is as simple as

    public void testURIHandling() throws Exception {
        String uri = "file://test.zip";
        Source source;
        SourceResolver resolver = null;
        try {
            resolver = (SourceResolver)getManager().lookup(SourceResolver.ROLE);
            source = resolver.resolveURI(uri);
        } catch (ServiceException se) {
            throw new SourceException("SourceResolver is not available.", se);
        } finally {
            getManager().release(resolver);
        }
        assertEquals("Uri is wrong.", uri, source.getURI());
    }

(running in a Cocoon test environment, getManager() returns a ServiceManager).

Now where is the problem? It works as expected on Windows but fails on Max OS X
despite the same debug output of source resolving:

[DEBUG] Resolving 'file://test.zip' with base 'null' in context ...
[DEBUG] Resolved to systemID : file://test.zip
[DEBUG] Creating source object for file://test.zip

What seems to get wrong is FileSource.getUri() as Jorg investigated [2]. The
question is if you want to handle this "accepted" bug in the JDK in Excalibur?

Thanks and regards,
Joerg

[1] https://issues.apache.org/jira/browse/COCOON-2022
[2] https://issues.apache.org/jira/browse/COCOON-2022#action_12481847


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to