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

Remove instantiation of com.sun.jndi.ldap.LdapCtxFactory for JDK16+ compatibility #18385

Merged
merged 1 commit into from
Jul 13, 2021
Merged

Remove instantiation of com.sun.jndi.ldap.LdapCtxFactory for JDK16+ compatibility #18385

merged 1 commit into from
Jul 13, 2021

Conversation

famod
Copy link
Member

@famod famod commented Jul 4, 2021

Resolves #17092

The following change in Spring led me to try out removing it and lo and behold, it worked: spring-projects/spring-ldap#568

See #8651 and #8696 for more context of that instantiation.

Not sure who can review this... @sberyozkin maybe? Or @galderz?

@famod
Copy link
Member Author

famod commented Jul 4, 2021

Not entirely sure about backporting to 2.0.1 but I'm leaning towards yes.

@gsmet
Copy link
Member

gsmet commented Jul 5, 2021

I think this needs to be carefully verified as the initial issue was a corner case.

@famod
Copy link
Member Author

famod commented Jul 5, 2021

Ah I see! I finally found the right PR that introduced this: #9486 (#8696 was not merged back then)

@gsmet I assume there is no test coverage for that corner case in this repo?

@famod famod requested a review from galderz July 5, 2021 11:10
@gsmet
Copy link
Member

gsmet commented Jul 12, 2021

I think it fails with the tests we have... given you have the right tool to build the native images. I wouldn't be surprised if the issue is only with Mandrel.

@zakkak any chance you could help here? Maybe run this PR with Mandrel releases?

@zakkak
Copy link
Contributor

zakkak commented Jul 12, 2021

I think it fails with the tests we have... given you have the right tool to build the native images. I wouldn't be surprised if the issue is only with Mandrel.

@zakkak any chance you could help here? Maybe run this PR with Mandrel releases?

@gsmet I am not sure how I can help. It appears like this patch is to resolve a JDK16+ compatibility issue. I have no way to verify this since we are not yet building/testing Mandrel for JDK 16+. Would a test using Mandrel 21.1 (JDK11 based) suffice?

@famod
Copy link
Member Author

famod commented Jul 12, 2021

@zakkak I think a JDK 11 based Mandrel test would cover Guillaume's concerns.

@zakkak
Copy link
Contributor

zakkak commented Jul 12, 2021

@zakkak I think a JDK 11 based Mandrel test would cover Guillaume's concerns.

OK, I started the following two:

@gsmet
Copy link
Member

gsmet commented Jul 12, 2021

@zakkak yeah that's exactly what I wanted. This workaround was added for Mandrel so if we want to remove it, we need to make sure it's not an issue anymore.

@zakkak
Copy link
Contributor

zakkak commented Jul 12, 2021

@gsmet both Mandrel 20.3 and 21.1 runs passed :)

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

OK, let's do it then. Thanks @zakkak for checking!

@gsmet gsmet merged commit bcedabf into quarkusio:main Jul 13, 2021
@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jul 13, 2021
@gsmet gsmet modified the milestones: 2.1 - main, 2.0.2.Final Jul 13, 2021
@famod famod deleted the elytron-ldap-jdk16 branch July 13, 2021 08: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.

Enable elytron-security-ldap tests on JDK 16+
3 participants