Skip to content

Do not validate Bitbucket Server by Api request#757

Closed
vinokurig wants to merge 1 commit intomainfrom
che-23303
Closed

Do not validate Bitbucket Server by Api request#757
vinokurig wants to merge 1 commit intomainfrom
che-23303

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.

@openshift-ci
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.

Details 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

Development

Successfully merging this pull request may close these issues.

Start workspace page displayed misleading warning "The Bitbucket integration is not configured properly" when opened gogs public repo using HTTP URL

3 participants