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

Do not validate Bitbucket Server by Api request #757

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

vinokurig
Copy link
Contributor

What does this PR do?

Remove the 'isApiRequestRelevant()' function from the Bitbucket Server flow. The function tests the given url if it belongs to Bitbucket Server by doing a user request. Bitbucket Server returns an empty string for unauthorized user without any specific messages. This is a problem as other unsupported git services might work in the same way, so we can not relay on that because if some unsupported git service also returns an empty string on an unsupported api request, the function will incorrectly mark the given url as Bitbucket Server.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

fixes eclipse-che/che#23303

How to test this PR?

see eclipse-che/che#23303

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.

@vinokurig
Copy link
Contributor Author

/retest

@vinokurig
Copy link
Contributor Author

/retest

@artaleks9
Copy link
Contributor

Verified on Eclipse Che with quay.io/eclipse/che-server:pr-757.

The functionality works properly.

Copy link

openshift-ci bot commented Jan 28, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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