Bitbucket import repoitory failure - invalid redirect_uri

Summary

During every attempt at importing a project from Bitbucket, an error occurs during OAuth authorization regarding an improperly configured integration - am invalid redirect_uri is set. Since authorization is not completed, and project cannot be created and imported.

Steps to reproduce

  • Create a new project in Gitlab.
  • During creation, choose to import from Bitbucket.
  • Once user is redirected to Bitbucket for authentication, error occurs.

What is the current bug behavior?

User receives an error:

Confirm access to your account

Invalid redirect_uri

This integration is misconfigured. Contact the vendor for assistance.

What is the expected correct behavior?

User should be able to authorize Bitbucket to allow GitLab to import Bitbucket repo.

Relevant logs and/or screenshots

Screenshot of error attached.

gitlab-bitbucket-error