Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-05-12 10:14:17 -0400
committerslewis2009-05-12 10:14:17 -0400
commit77303a0aaf183f164a398a4c079885169b63c07f (patch)
treef2d466c0bd3d6b3ce27620a3d61936fab6f70798 /providers/bundles/org.eclipse.ecf.provider.filetransfer
parentccbc9b19d25ecf3acc19d923942144ffb66a3bdb (diff)
downloadorg.eclipse.ecf-77303a0aaf183f164a398a4c079885169b63c07f.tar.gz
org.eclipse.ecf-77303a0aaf183f164a398a4c079885169b63c07f.tar.xz
org.eclipse.ecf-77303a0aaf183f164a398a4c079885169b63c07f.zip
Fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=275852v20090512-0828
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.filetransfer')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/browse/URLFileSystemBrowser.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/browse/URLFileSystemBrowser.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/browse/URLFileSystemBrowser.java
index 416e14b6c..06e9802bc 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/browse/URLFileSystemBrowser.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/browse/URLFileSystemBrowser.java
@@ -105,7 +105,9 @@ public class URLFileSystemBrowser extends AbstractFileSystemBrowser {
code = getResponseCode(urlConnection);
ins.close();
if (isHTTP()) {
- if (code == HttpURLConnection.HTTP_NOT_FOUND) {
+ if (code == HttpURLConnection.HTTP_OK) {
+ // do nothing
+ } else if (code == HttpURLConnection.HTTP_NOT_FOUND) {
throw new BrowseFileTransferException(NLS.bind("File not found: {0}", directoryOrFile.toString()), code); //$NON-NLS-1$
} else if (code == HttpURLConnection.HTTP_UNAUTHORIZED) {
throw new BrowseFileTransferException("Unauthorized", code); //$NON-NLS-1$

Back to the top