MINOR: Improve PlainSaslServer error message for empty tokens#6249
MINOR: Improve PlainSaslServer error message for empty tokens#6249ijuma merged 3 commits intoapache:trunkfrom
Conversation
|
I'm using |
|
cc @apovzner |
There was a problem hiding this comment.
Do we still need this?
There was a problem hiding this comment.
Good point. We can add code to split (and maybe rename it) to verify if two utf8nul are not present and return an error like this one. Would it be SaslException still?
There was a problem hiding this comment.
I think this can also be SaslAuthenticationException since it is only returning error based on the information the client passed in, so it wont be leaking any server state.
|
Thanks for the review, I did wonder |
Empty username or password would result in the "expected 3 tokens" error instead of "username not specified" or "password not specified".
1c566e2 to
65115c1
Compare
rajinisivaram
left a comment
There was a problem hiding this comment.
@ijuma Thanks for the updates, LGTM
|
JDK 11 build passed, JDK 8 had an unrelated failure:
Merging to trunk. |
…#6249) Empty username or password would result in the "expected 3 tokens" error instead of "username not specified" or "password not specified". Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>
Empty username or password would result in the "expected 3 tokens"
error instead of "username not specified" or "password not specified".
Committer Checklist (excluded from commit message)