question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Techdocs] Own Hosted Bitbucket follow-up #4233 (Issues during test)

See original GitHub issue

Expected Behavior

Reading branch from bitbucket server

Current Behavior

Failed to retrieve default branch from https://<mybitbucket-host.com>/rest/api/1.0/projects/PRJ/repos/me-repo-1/default-branch, 404 Not Found

Possible Solution

https://github.com/backstage/backstage/blob/master/packages/integration/src/bitbucket/core.ts#L37

fixing

  const branchUrl = isHosted
    ? `${config.apiBaseUrl}/repositories/${project}/${repoName}`
    : `${config.apiBaseUrl}/projects/${project}/repos/${repoName}/default-branch`;

to

  const branchUrl = isHosted
    ? `${config.apiBaseUrl}/repositories/${project}/${repoName}`
    : `${config.apiBaseUrl}/projects/${project}/repos/${repoName}/branches/default`;

Steps to Reproduce

Same as in #4233

Context

Your Environment

Atlassian Bitbucket v5.11.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
OrkoHuntercommented, Feb 3, 2021
1reaction
kaparwancommented, Jan 31, 2021

Hi @Himanshu.

Sure , I will open PR.

I think we can default to current version and fallback to old, yes. ( And we can see how many such changes exist across these versions. There shouldn’t be many. )

– Sent from iPhone

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting steps for Bitbucket Server Code Search
Check the status of Search server · Check that Search server is starting with the atlbitbucket user · Check the username/password for Search ......
Read more >
Bitbucket code review: Merge with confidence
Merge with confidence. List conditions for reviewers to check off before approving, so pull requests are consistently vetted before they are merged.
Read more >
Bitbucket Overview
Cloud Server Data center Git repository hosting Cloud Server Data center Branch permissions Cloud Server Data center Jira Software integration Cloud Server Data center
Read more >
Bitbucket | Git solution for teams using Jira
Bitbucket Cloud is a Git-based code and CI/CD tool optimized for teams using Jira.
Read more >
Bitbucket Integrations
Identify and remediate cloud security issues with Bridgecrew's Bitbucket Cloud ... test, deploy flows and notifications to support your team's unique way of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found