commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe Poulard (JIRA)" <>
Subject [jira] Created: (VFS-85) unexpected http connect
Date Mon, 02 Oct 2006 08:26:19 GMT
unexpected http connect

                 Key: VFS-85
             Project: Commons VFS
          Issue Type: Improvement
            Reporter: Philippe Poulard
            Priority: Blocker

when I try to create a file object with "", VFS fails when the host
is unreachable (e.g. when not connected to internet)

this is because org.apache.commons.vfs.provider.http.HttpFileSystem has a constructor that
has an argument HttpClient, whereas it should be an HttpClientFactory

the HttpClient should be resolved only when required :

    protected HttpClient getClient()
        if ( this.client == null ) {
            this.client = clientFactory.createConnection(...);
        return client;

I didn't check it, but this issue is certainly present with FTP and others...

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message