Skip to content

Commit 9d23599

Browse files
committed
fixup! Treat azure devops redirect response as unauthorized error
1 parent c289aa1 commit 9d23599

File tree

1 file changed

+1
-0
lines changed
  • wsmaster/che-core-api-factory-azure-devops/src/main/java/org/eclipse/che/api/factory/server/azure/devops

1 file changed

+1
-0
lines changed

wsmaster/che-core-api-factory-azure-devops/src/main/java/org/eclipse/che/api/factory/server/azure/devops/AzureDevOpsApiClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ private <T> T executeRequest(
155155
throw new ScmItemNotFoundException(body);
156156
case HTTP_UNAUTHORIZED:
157157
case HTTP_FORBIDDEN:
158+
// Azure DevOps tries to redirect to the login page if the user is not authorized.
158159
case HTTP_MOVED_TEMP:
159160
throw new ScmUnauthorizedException(body, "azure-devops", "v2", "");
160161
default:

0 commit comments

Comments
 (0)