-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Treat azure devops redirect response as unauthorized error #755
Conversation
/retest |
1 similar comment
/retest |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All Azure factories with OAuth
test-cases passed successfully with this fix
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: SkorikSergey, tolusha, vinokurig The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Build 3.19 :: server_3.x/379: Console, Changes, Git Data |
Handle the 302 redirect response in the azure devops api client and throw unauthorized exception, so the dashboard can handle it properly. Also add 401 unauthorized and 403 forbidden to the unauthorized case.
Build 3.19 :: sync-to-downstream_3.x/8620: Console, Changes, Git Data |
Build 3.19 :: push-latest-container-to-quay_3.x/5064: Console, Changes, Git Data |
Build 3.19 :: get-sources-rhpkg-container-build_3.x/8726: server : 3.x :: Build 66475866 : quay.io/devspaces/server-rhel9:3.19-4 |
Build 3.19 :: server_3.x/379: Upstream sync done; /DS_CI/sync-to-downstream_3.x/8620 triggered |
Build 3.19 :: update-digests_3.x/8446: Console, Changes, Git Data |
Build 3.19 :: operator-bundle_3.x/4326: Console, Changes, Git Data |
Build 3.19 :: sync-to-downstream_3.x/8623: Console, Changes, Git Data |
Build 3.19 :: get-sources-rhpkg-container-build_3.x/8729: devspaces-operator-bundle : 3.x :: Failed in 66476777 : BREW:BUILD/STATUS:UNKNOWN |
What does this PR do?
Handle the 302 redirect response in the azure devops api client and throw
unauthorized
exception, so the dashboard can handle it properly. Also add 401 unauthorized and 403 forbidden to the unauthorized case.Screenshot/screencast of this PR
What issues does this PR fix or reference?
https://issues.redhat.com/browse/CRW-7941
How to test this PR?
quay.io/eclipse/che-server:pr-755
.PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedRelease Notes
Reviewers
Reviewers, please comment how you tested the PR when approving it.