Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
If a client sets an unknown sasl.mechanism value (e.g. mistakenly setting "PLAN" instead of "PLAIN") the client sees a NullPointerException that only indirectly indicates the nature of the problem. For example:
java.lang.NullPointerException
at org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.sendSaslClientToken(SaslClientAuthenticator.java:430)
It is better to see an exception that directly states what the issue is. For example, the initial version of this PR would provide the following information:
Caused by: org.apache.kafka.common.errors.SaslAuthenticationException: Failed to create SaslClient with mechanism PLAN
Attachments
Issue Links
- is duplicated by
-
KAFKA-9497 Brokers start up even if SASL provider is not loaded and throw NPE when clients connect
- Resolved
-
KAFKA-7631 NullPointerException when SCRAM is allowed bu ScramLoginModule is not in broker's jaas.conf
- Resolved
- links to