Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[oauth] Fix exception wrapping #4150

Merged
merged 1 commit into from Mar 23, 2024
Merged

Conversation

jlaur
Copy link
Contributor

@jlaur jlaur commented Mar 14, 2024

In this method, exceptions are thrown, caught and wrapped into OAuthException. In some cases, this results in OAuthException being wrapped into another OAuthException. However, in other cases, OAuthResponseException is wrapped into OAuthException, effectively preventing the intended OAuthResponseException from being thrown from the method (since 4.0).

See openhab/openhab-addons#16518 (comment)

Regression of #3271

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@jlaur jlaur requested a review from a team as a code owner March 14, 2024 22:08
Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

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

LGTM

@J-N-K J-N-K added the bug An unexpected problem or unintended behavior of the Core label Mar 23, 2024
@J-N-K J-N-K added this to the 4.2 milestone Mar 23, 2024
@J-N-K J-N-K merged commit b3047c6 into openhab:main Mar 23, 2024
3 checks passed
@jlaur jlaur deleted the oauth-unwrap-exceptions branch March 23, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants