OF-2827: JDBCAuthProvider should not lowercase/trim provided username
By lowercasing the input, a username with a capital letter can't be used.
The closely related JDBCUserProvider does not lowercase/trim values. It is probably best that both providers treat usernames in the same way.
I'm wondering if we even need a configuration option to make this behavior configurable. Isn't it just plain 'wrong' to have inconsistent processing of the username values - that's never going to work, is it?
Seems reasonable to maintain the fidelity of the username. I can see an argument to maintain the trim, but I don't know whether alice is a valid username.
I can see an argument to maintain the trim, but I don't know whether alice is a valid username.
It likely isn't, but shouldn't that then be applied to where the user provides the input (eg: the login form)?
Exactly that. Let's trust the user.
Hehehe, let's not - but lets apply input validation near the input form maybe?
Successfully created backport PR for 4.8:
- #2475