From 797b828ef843e59e31af99b7974f8b8aaf8798c4 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 11 Apr 2019 15:59:26 -0700 Subject: [PATCH] Be more lenient on checksum upload error See gh-51 --- .../artifactory/HttpArtifactoryRepository.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/io/spring/concourse/artifactoryresource/artifactory/HttpArtifactoryRepository.java b/src/main/java/io/spring/concourse/artifactoryresource/artifactory/HttpArtifactoryRepository.java index f07d75d..42542bb 100644 --- a/src/main/java/io/spring/concourse/artifactoryresource/artifactory/HttpArtifactoryRepository.java +++ b/src/main/java/io/spring/concourse/artifactoryresource/artifactory/HttpArtifactoryRepository.java @@ -30,7 +30,6 @@ import org.springframework.core.io.Resource; import org.springframework.http.HttpMethod; -import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.RequestEntity; import org.springframework.http.RequestEntity.BodyBuilder; @@ -81,9 +80,6 @@ public void deploy(DeployableArtifact artifact, DeployOption... options) { deployUsingChecksum(artifact); } catch (HttpClientErrorException ex) { - if (!ex.getStatusCode().equals(HttpStatus.NOT_FOUND)) { - throw ex; - } deployUsingContent(artifact); } }