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

KNOX-3075 - Handling unlimited token expiration in JDBC TSS properly #970

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

smolnar82
Copy link
Contributor

What changes were proposed in this pull request?

As described in KNOX-3075, when the token TTL was set to -1 (which allows creating never-expiring tokens), JDBC TSS threw an UnknownTokenException. This is wrong. It should have returned the configured -1 value.

How was this patch tested?

I updated existing JUnit tests to handle the path when fetching tokens for a user. I also added 2 new test cases to ensure this issue never occurs again.

Copy link
Contributor

@lmccay lmccay left a comment

Choose a reason for hiding this comment

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

LGTM!

+1

@smolnar82
Copy link
Contributor Author

Hi @moresandeep, @pzampino - Can any of you please check this out for me? Thanks!

@smolnar82 smolnar82 merged commit 683c499 into apache:master Nov 26, 2024
2 checks passed
@smolnar82 smolnar82 deleted the KNOX-3075 branch November 26, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants