diff options
author | Henrik Lindberg | 2009-08-01 15:35:23 +0000 |
---|---|---|
committer | Henrik Lindberg | 2009-08-01 15:35:23 +0000 |
commit | 004aa14af9757d40effc88d77d06edd856127dd8 (patch) | |
tree | 599557568c456f0b1e468714d1ea55ed1190dafc /bundles/org.eclipse.equinox.p2.repository/src | |
parent | 384f94191b66a67c59842b168cde794bb64cdbe7 (diff) | |
download | rt.equinox.p2-004aa14af9757d40effc88d77d06edd856127dd8.tar.gz rt.equinox.p2-004aa14af9757d40effc88d77d06edd856127dd8.tar.xz rt.equinox.p2-004aa14af9757d40effc88d77d06edd856127dd8.zip |
[282079] [transport] UpdateSite doesn't handle 403 errors properly
403 is now always handled as "not found" at the transport level. Test updated.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.repository/src')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/RepositoryStatusHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/RepositoryStatusHelper.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/RepositoryStatusHelper.java index 03895f47f..7f87da896 100644 --- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/RepositoryStatusHelper.java +++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/RepositoryStatusHelper.java @@ -269,12 +269,12 @@ public abstract class RepositoryStatusHelper { public static void checkFileNotFound(Throwable t, URI toDownload) throws FileNotFoundException { if (t instanceof IncomingFileTransferException) { IncomingFileTransferException e = (IncomingFileTransferException) t; - if (e.getErrorCode() == 404 || e.getErrorCode() == 300) + if (e.getErrorCode() == 404 || e.getErrorCode() == 403 || e.getErrorCode() == 300) throw new FileNotFoundException(toDownload.toString()); } if (t instanceof BrowseFileTransferException) { BrowseFileTransferException e = (BrowseFileTransferException) t; - if (e.getErrorCode() == 404 || e.getErrorCode() == 300) + if (e.getErrorCode() == 404 || e.getErrorCode() == 403 || e.getErrorCode() == 300) throw new FileNotFoundException(toDownload.toString()); } |