-
Notifications
You must be signed in to change notification settings - Fork 536
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
ChainAuthHandlerImpl#postAuthentication throws NPE #2611
Comments
There also another problem with this fix (ArrayOutOfBoundException here). This will happen if the Build a following list of handlers to reproduce the issue (see image with nested any handlers) |
A problem with the ChainAuthHandler was introduced in vert.x version 4.5.6. To mitigate the issue, we do not use the vert.x ChainAuthHandler when only one AuthenticationHandler is used. The problem still exists when more than one AuthenticationHandler is used. vert-x3/vertx-web#2611
A problem with the ChainAuthHandler was introduced in vert.x version 4.5.6. To mitigate the issue, we do not use the vert.x ChainAuthHandler when only one AuthenticationHandler is used. The problem still exists when more than one AuthenticationHandler is used. vert-x3/vertx-web#2611
@halber can you provide a reproducer that does not involve an MFA handler? As far as I can tell, the reproducer also fails without commit f856512. It fails differently, with I tried to create a reproducer with a single, simple auth handler (basic auth) and it worked fine. Can you provide a different reproducer? |
@andrei-tulba if I understand correctly, the issue is different (happens when |
FYI @tsegismont ☝️ |
Thanks @andrei-tulba |
Stumbled over the same error in version 4.5.10 authHandler is a OAuth2Handler (Google) ...
... |
@halber thanks, I'll give this a try and hopefully can reproduce. In the meantime, can you tell a bit more about how your jwtAuthHandler is initialized? |
I'am not the referenced person but maybe it helps because i run into the exact same error. my code example you see above, the handlers were setup this way:
|
Version
4.5.6
Context
This commit f856512 causes an NPE when calling the postAuthentication method.
Do you have a reproducer?
git clone --branch reproducer --single-branch https://github.com/halber/vertx-web.git
Steps to reproduce
mvn -Dtest=io.vertx.ext.web.handler.ChainAuthHandlerTest2 test
This test is a copy of the
io.vertx.ext.web.handler.OtpHandlerTest#testVerifyAuthenticatorGoodCode
. The only thing I changed was to add the OtpAuthHandler to the ChainAuthHandler. Line 89 to 91.Stacktrace
The text was updated successfully, but these errors were encountered: