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

OAK-10151 : oak-auth-external tests fail with Guava 20 #879

Closed
wants to merge 3 commits into from

Conversation

anchela
Copy link
Contributor

@anchela anchela commented Mar 28, 2023

@reschke , i would appreciate if you could take a close look. the changes:

  • obvious mistake in one auth-external test
  • adding more messages to the assertions in auth-external tests
  • simplify AuthorizableIterator construction in AuthorizbleImpl and GroupImpl
  • replace usage of guava Iterators.concat in AuthorizableIterator with a custom utility in oak-commons

i hope that this allows us to fully understand why the guava concat fails with guava 20.
once we have that and conclude that the proposed replacement is reasonable, i would replace all usages of guave Iterators.concat in oak security and if used other modules.

@anchela anchela requested a review from reschke March 28, 2023 18:19
@reschke
Copy link
Contributor

reschke commented Mar 29, 2023

I'm going to review and test during the day.

@reschke
Copy link
Contributor

reschke commented Mar 29, 2023

I can confirm this passes tests with Guava 20.

That said, I'm a little worried about the approach. We have no evidence that "Iterators.concat()" is indeed broken in Guava 20, so this might be exposing a bug in our implementations that we might be just hiding right now.+

Would it be possible to separate the test changes into a distinct ticket/commit and do that first? I'm willing to help with the analysis once I'm done with my current emergency :-).

@anchela
Copy link
Contributor Author

anchela commented Mar 30, 2023

Would it be possible to separate the test changes into a distinct ticket/commit and do that first?

should be doable.

@anchela
Copy link
Contributor Author

anchela commented Apr 4, 2023

@reschke , wdyt?

Copy link
Contributor

@reschke reschke left a comment

Choose a reason for hiding this comment

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

I don't think we need this. It essentially hides a Guava bug; it's better just not to use that Guava version.

@anchela anchela closed this Apr 4, 2023
@anchela
Copy link
Contributor Author

anchela commented Apr 4, 2023

@reschke , ok i am closing this now. we can still bring it back if we see a need for it in the future.

@sonarcloud
Copy link

sonarcloud bot commented Apr 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants