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
Username not detected (login failing) if username contains special caracters #15610
Comments
Another user on support, but slightly different. Username is like: Version: 2024.04.13 |
More results from this user, which seem to show that username detection works in some parts of c:geo but not for the initial login.
Another test:
|
Info from the affected user: JS source for the relevant prt is \u0026, which is a JS-encoding for the &-sign. |
BTW: Is there any reason why we try to detect the username during login? We have the username in the credentials, and users should not login using an email address anyway (for gc.com at least). |
Wrt parsing part: the key here is of course not to apply regex expressions on json snippets but to use the whole json and parse it using JSON lib. Then such conversions are done for us. Why the username is parsed from page and not from serverparameters I don't know. Probably it simply "has been this way forever"...? |
I can try to look further into it, but won't be able to do so before tomorrow evening. |
PR #15653 attempts to fix both issues:
Switching to using |
User on ticket 155297 (initial issue) reported back, that the fix is working. |
The second affected user (different special characters in username) confirmed fix as working as well, so let's close here for now. |
Reported by user on support (ticket 155297):
User cannot login. Possible cause is a double quote contained in the username. This translates to
\"
in the source (multiple times in that specific case, as the username is similar toxyz"abc"
).At least search pattern
PATTERN_LOGIN_NAME_CACHE_COUNT
needs to be adapted, as it currently greps chars until it reaches the first"
.Reported for version 2024.04.13
The text was updated successfully, but these errors were encountered: