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

fix: do not return error when bitbucket server account is not found#51030

Merged
kopancek merged 1 commit into
mainfrom
milan/fix_bitbucket_log
Apr 24, 2023
Merged

fix: do not return error when bitbucket server account is not found#51030
kopancek merged 1 commit into
mainfrom
milan/fix_bitbucket_log

Conversation

@kopancek

@kopancek kopancek commented Apr 24, 2023

Copy link
Copy Markdown
Contributor

This was causing unnecessary error logs. But there are cases, where this is completely normal, e.g. if a sourcegraph user does not have bitbucket server account linked. Do not return an error, as other providers also do not return an error in this case.

fixes #51024

Test plan

unit test changed

This was causing unnecessary error logs. But there are cases, where this
is completely normal, e.g. if a sourcegraph user does not have bitbucket
server account linked. Do not return an error, as other providers also do
not return an error in this case.

Related:
- #51024
@kopancek kopancek requested a review from a team April 24, 2023 08:31
@cla-bot cla-bot Bot added the cla-signed label Apr 24, 2023
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff ff9af8b...08274df.

Notify File(s)
@unknwon enterprise/internal/authz/bitbucketserver/provider.go
enterprise/internal/authz/bitbucketserver/provider_test.go

@sashaostrikov sashaostrikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@kopancek kopancek merged commit 0e59032 into main Apr 24, 2023
@kopancek kopancek deleted the milan/fix_bitbucket_log branch April 24, 2023 09:10
github-actions Bot pushed a commit that referenced this pull request Apr 24, 2023
…51030)

This was causing unnecessary error logs. But there are cases, where this
is completely normal, e.g. if a sourcegraph user does not have bitbucket
server account linked. Do not return an error, as other providers also
do not return an error in this case.

fixes #51024
- #51024

## Test plan

unit test changed

(cherry picked from commit 0e59032)
coury-clark pushed a commit that referenced this pull request Apr 24, 2023
… is not found (#51033)

This was causing unnecessary error logs. But there are cases, where this
is completely normal, e.g. if a sourcegraph user does not have bitbucket
server account linked. Do not return an error, as other providers also
do not return an error in this case.

fixes #51024
- #51024



## Test plan

unit test changed
 <br> Backport 0e59032 from #51030

Co-authored-by: Milan Freml <kopancek@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix error handling for bitbucker server when user does not match

3 participants