Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
when I try to create a file object with "http://www.somehost.com/", 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 )
return client;
}
I didn't check it, but this issue is certainly present with FTP and others...