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

Fixes ambiguous error codes #293

Closed

Conversation

NikitaAvraimov-okta
Copy link
Contributor

Description:

Testing details:

  • Verified basic functionality of change
  • Added tests

Other considerations:

  • Has security implications
  • Has UX changes
RESOLVES:

OKTA-435843
#274

Primary Reviewer(s):

Additional Reviewers:
Security Reviewer(s) (@ okta/rex-team if necessary):
UX Reviewer(s) (if necessary):

@NikitaAvraimov-okta NikitaAvraimov-okta force-pushed the na-OKTA-435843-ambiguous-error-codes branch 3 times, most recently from 7319931 to 5b487e1 Compare December 21, 2021 14:39
@@ -232,7 +232,7 @@ public void refreshTokenFailure() throws InterruptedException {
latch.await();
assertNull(cb.getResult());
assertNotNull(cb.getException());
assertEquals(cb.getException().getMessage(), "Invalid status code 401 Client Error");
assertEquals(cb.getException().getMessage(), "No client credentials found.");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -232,7 +232,7 @@ public void refreshTokenFailure() throws InterruptedException {
latch.await();
assertNull(cb.getResult());
assertNotNull(cb.getException());
assertEquals(cb.getException().getMessage(), "Invalid status code 401 Client Error");
assertEquals(cb.getException().getMessage(), "No client credentials found.");
Copy link
Contributor

Choose a reason for hiding this comment

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

The original issue was saying we had multiple exceptions with the same type/code. Please add an assertion to confirm we fixed the original issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the assertion below.

eng-prod-CI-bot-okta pushed a commit that referenced this pull request Dec 22, 2021
OKTA-435843
<<<Jenkins Check-In of Tested SHA: ab12651 for eng_productivity_ci_bot_okta@okta.com>>>
Artifact: okta-oidc-android
Files changed count: 3
PR Link: "#293"
rajdeepnanua-okta pushed a commit that referenced this pull request Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants