Skip to content
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

Use HTTP response status code to check gitlab repositories accessibil… #742

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

vinokurig
Copy link
Contributor

…ity (#741)

Improve the isPublicRepository() function in the GitlabAuthorizingFileContentProvider class to check the http response status code. The previous way with the urlFetcher does not work because gitlab server returns a content of an html page with credentials input instead of an error.

What does this PR do?

Cherry pick from #741

Screenshot/screencast of this PR

What issues does this PR fix or reference?

How to test this PR?

PR Checklist

As the author of this Pull Request I made sure that:

Release Notes

Reviewers

Reviewers, please comment how you tested the PR when approving it.

…ity (#741)

Improve the isPublicRepository() function in the GitlabAuthorizingFileContentProvider class to check the http response status code. The previous way with the urlFetcher does not work because gitlab server returns a content of an html page with credentials input instead of an error.
Copy link

openshift-ci bot commented Nov 19, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dmytro-ndp, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dmytro-ndp dmytro-ndp merged commit c6f30fd into 7.92.x Nov 19, 2024
6 checks passed
@dmytro-ndp dmytro-ndp deleted the CRW-7608-7.92 branch November 19, 2024 16:41
@devstudio-release
Copy link

Build 3.17 :: server_3.17/6: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.17 :: server_3.17/6: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.17/100 triggered

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.17 :: copyIIBsToQuay/2883: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.17 :: sync-to-downstream_3.17/101: SUCCESS

Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.17/111 triggered; /job/DS_CI/job/dsc_3.17 triggered;

@devstudio-release
Copy link

Build 3.17 :: operator-bundle_3.17/38: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.17/101 triggered

@devstudio-release
Copy link

Build 3.17 :: dsc_3.17/39: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.17 :: update-digests_3.17/349: SUCCESS

Detected new images: rebuild operator-bundle
* server; /DS_CI/operator-bundle_3.17/38 triggered

@devstudio-release
Copy link

Build 3.17 :: dsc_3.17/39: SUCCESS

3.17.0-CI

@devstudio-release
Copy link

Build 3.17 :: copyIIBsToQuay/2883: SUCCESS

3.17
arches = x86_64, s390x, ppc64le;
  * LATEST DS OPERATOR BUNDLE = <a href=https://quay.io/repository/devspaces/devspaces-operator-bundle?tab=tags>registry-proxy.engineering.redhat.com/rh-osbs/devspaces-operator-bundle:3.17-58
  * LATEST DWO OPERATOR BUNDLE = <a href=https://quay.io/repository/devworkspace/devworkspace-operator-bundle?tab=tags>registry-proxy.engineering.redhat.com/rh-osbs/devworkspace-operator-bundle:0.31-3
+ crwjen-3 IIB(s) copied:
  + quay.io/devspaces/iib:3.17-v4.17-864424-860560-s390x
  + quay.io/devspaces/iib:3.17-v4.16-864423-860559-s390x
  + quay.io/devspaces/iib:3.17-v4.15-864422-860558-s390x
  + quay.io/devspaces/iib:3.17-v4.14-866839-860557-s390x
  + quay.io/devspaces/iib:3.17-v4.14-s390x
  + quay.io/devspaces/iib:latest-v4.14-s390x
  + quay.io/devspaces/iib:3.17-v4.13-866838-860556-s390x
  + quay.io/devspaces/iib:3.17-v4.13-s390x
  + quay.io/devspaces/iib:latest-v4.13-s390x
  + quay.io/devspaces/iib:3.17-v4.12-866837-860555-s390x
  + quay.io/devspaces/iib:3.17-v4.12-s390x
  + quay.io/devspaces/iib:latest-v4.12-s390x
+ x86_64-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.17-v4.17-864424-860560-x86_64
  + quay.io/devspaces/iib:3.17-v4.16-864423-860559-x86_64
  + quay.io/devspaces/iib:3.17-v4.15-864422-860558-x86_64
  + quay.io/devspaces/iib:3.17-v4.14-866839-860557-x86_64
  + quay.io/devspaces/iib:3.17-v4.14-x86_64
  + quay.io/devspaces/iib:latest-v4.14-x86_64
  + quay.io/devspaces/iib:3.17-v4.13-866838-860556-x86_64
  + quay.io/devspaces/iib:3.17-v4.13-x86_64
  + quay.io/devspaces/iib:latest-v4.13-x86_64
  + quay.io/devspaces/iib:3.17-v4.12-866837-860555-x86_64
  + quay.io/devspaces/iib:3.17-v4.12-x86_64
  + quay.io/devspaces/iib:latest-v4.12-x86_64
+ ppc64le-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.17-v4.17-864424-860560-ppc64le
  + quay.io/devspaces/iib:3.17-v4.16-864423-860559-ppc64le
  + quay.io/devspaces/iib:3.17-v4.15-866840-860558-ppc64le
  + quay.io/devspaces/iib:3.17-v4.15-ppc64le
  + quay.io/devspaces/iib:latest-v4.15-ppc64le
  + quay.io/devspaces/iib:3.17-v4.14-866839-860557-ppc64le
  + quay.io/devspaces/iib:3.17-v4.14-ppc64le
  + quay.io/devspaces/iib:latest-v4.14-ppc64le
  + quay.io/devspaces/iib:3.17-v4.13-866838-860556-ppc64le
  + quay.io/devspaces/iib:3.17-v4.13-ppc64le
  + quay.io/devspaces/iib:latest-v4.13-ppc64le
  + quay.io/devspaces/iib:3.17-v4.12-866837-860555-ppc64le
  + quay.io/devspaces/iib:3.17-v4.12-ppc64le
  + quay.io/devspaces/iib:latest-v4.12-ppc64le

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants