Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.5.x] fix(source): Fix issue where worker would crash if a Bitbucket Cloud token couldn''t be refreshed#64037

Merged
pjlast merged 1 commit into
5.5.xfrom
backport-64028-to-5.5.x
Jul 24, 2024
Merged

[Backport 5.5.x] fix(source): Fix issue where worker would crash if a Bitbucket Cloud token couldn''t be refreshed#64037
pjlast merged 1 commit into
5.5.xfrom
backport-64028-to-5.5.x

Conversation

@sourcegraph-release-bot

Copy link
Copy Markdown
Collaborator

A Bitbucket Cloud incident caused APIs to error which caused Bitbucket Cloud OAuth tokens to fail to refresh. This revealed that the Bitbucket Cloud client called oauthutil.DoRequest with a nil logger, causing a nil pointer dereference.

This PR simply creates the logger before calling DoRequest, which is what the other clients do.

Test plan

No more cases of DoRequest with a nil logger.

Changelog

  • Fixed an issue where a Bitbucket Cloud OAuth token failing to refresh would crash the worker service.


Backport bc036ad from #64028

…token couldn''t be refreshed (#64028)

(cherry picked from commit bc036ad)
@sourcegraph-release-bot sourcegraph-release-bot requested review from a team, craigfurman and pjlast and removed request for a team July 24, 2024 13:04
@sourcegraph-release-bot sourcegraph-release-bot added cla-signed backports team/source Tickets under the purview of Source - the one Source to graph it all team/product-platform backported-to-5.5.x labels Jul 24, 2024
@craigfurman

Copy link
Copy Markdown
Contributor

@pjlast FYI, we recently removed the branch protection rules that caused only the release team to be able to merge (see https://sourcegraph.slack.com/archives/C0EPTDE9L/p1720640223975069). Please feel free to merge this yourself.

@pjlast pjlast merged commit a88bc4d into 5.5.x Jul 24, 2024
@pjlast pjlast deleted the backport-64028-to-5.5.x branch July 24, 2024 14:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backported-to-5.5.x backports cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants