atlassian / atlassian/atlascode
[Bitbucket Server] No more local Git repository detection --> no redirection when remote is an alias of true URL
- Dominant language
- TypeScript
- Stars
- 129
- Forks
- 82
- Avg merge
- 3h 3m
- Merged PRs (30d)
- 6
Description
**Describe the bug**
Since version 3.0.0, the extension does not support redirects (http status 301?) when accessing the Bitbucket server url.
See issue 802: [Jira and Bitbucket extension for VS Code - No more local Git repository detection --> no redirection when remote is an alias of true URL](https://bitbucket.org/atlassianlabs/atlascode/issues/802/jira-and-bitbucket-extension-for-vs-code)
**To Reproduce**
The origin of the problem has been identified:
- our Enterprise Bitbucket server has changed URL: address and port are different
- the old URL was kept as an alias
- if we clone a Repository using the alias, then the VS Code extension does not work for Pull Request management
- if we clone a Repository using the real address, or if we modify the remote information in a Repository cloned with the alias, then the VS Code extension works for Pull Request management
Conclusion: The VS Code extension does not handle URL redirection requests to access the Enterprise Bitbucket server.
**Expected behavior**
Support redirection url.
**Screenshots**

**Environment and Version (please complete the following information):**
- Atlassian Plugin Version (x.x.x)
- Visual Studio Code Version: all
- Is this a local or cloud environment? Local
- If Cloud, Browser (chrome, safari)
- If Local, OS: Windows 10 22H2
**Additional context**
See [Jira and Bitbucket extension for VS Code - No more local Git repository detection --> no redirection when remote is an alias of true URL](https://bitbucket.org/atlassianlabs/atlascode/issues/802/jira-and-bitbucket-extension-for-vs-code)
Contributor guide
Research direction
Start by reviewing the linked Bitbucket issue 802 and reproducing the reported case: clone a repository using the old URL alias, then compare it with the real server URL. Done means the VS Code extension supports URL redirection and can manage pull requests when the remote uses the alias; the issue names no files or tests to start from.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100