- edited description
"View Pull Request" from Context Menu in editor failed to open pull-request due to case sensitive URL
Context:
Bitbucket Server: Atlassian Bitbucket v7.2.2
OS: MacOS Ventura 13.1
vscode:1.74.2 (Universal)
atlascode: v3.0.0
Assumptions:
Let’s suppose I am working on a repository named my-repo
that is part of MY-PROJECT
project (MY-PROJECT
is the project key).
The URL of this repository is thus:
https://bitbucket.mycompany.com/projects/MY-PROJECT/repos/my-repo
And any case variations of project key and repository name is accepted, so following URL for instance is working fine
https://bitbucket.mycompany.com/projects/my-project/repos/my-repo
Issue description:
However it seems Bitbucket Server is not following the case insensitive standard for pull-request overview and it is breaking the context menu "View Pull Request" from atlascode extension.
Indeed, when clicking on "View Pull Request" from context menu, I am directed to this URL:
https://bitbucket.mycompany.com/projects/my-project/repos/my-repo/pull-requests/536/overview
which is giving me this error:
Pull request projects does not exist in MY-PROJECT/my-repo
the correct URL is the following (note the change of project key to upper-case):
https://bitbucket.mycompany.com/projects/MY-PROJECT/repos/my-repo/pull-requests/536/overview
My 2 cents:
It looks like the solution is probably to fix the issue on Bitbucket server side. So I hope you can push for it. But in the meantime this feature from atlascode is broken while quite useful.
Hopefully you can find a workaround to fix this feature in parallel of Bitbucket server update.
Regards,
Louis
Comments (1)
-
reporter - Log in to comment