-
Notifications
You must be signed in to change notification settings - Fork 699
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
Setup Wizard > LOD > Import user - Missing validation for uppercase in the usernames and passwords #11540
Comments
@pcenov The error in the logs indicates an authentication failure. Although, that failure isn't handled properly and creates an error of its own. @marcellamaki this seems similar to what we experienced last Friday |
@bjester thanks for pointing that out! After further investigation this error is actually caused by me inputting the password of the learner with small letters instead of capital letters... sigh |
Good to know the import isn't totally broken, but this could definitely still use some improved error handling, as with the other issue we ran into @bjester that you mentioned. I'll see if I can find some strings that we might be able to repurpose here, and we can rescope the issue to focus on that. |
Also if I enter the password with the correct upper case but l enter the username in small case I get this error which we've seen before but it was not clear how to replicate it:
I'll edit the description and title of the bug report as it has nothing to do with the latest work on the syncing. |
We can reuse the |
I guess this issue requires form validations to be stitched for username and password. |
hi there, @hustlernik! i've already been assigned this issue but please feel free to look for another issue that's featuring a "help wanted" tag! :) |
@thanksameeelian no problem, sure. |
@hustlernik Are you still interested? |
Can I contribute to this issue? I'm new here, but I have experience contributing to many other organizations. Is there a Discord channel or any other channel where I can discuss and get assistance? |
Hi @nick2432! I have assigned this issue to you! Please let us know if there is anything we can help with. |
@AlexVelezLl Hey, thank you for assigning me this issue. I successfully ran Kolibri on my local machine, but I have a little confusion on how to reproduce the issue. If anyone can provide assistance, it would be very helpful for me. |
Hi @nick2432 thank you for your interest in working on this issue. I assume you are following the steps to reproduce this issue from the description above. Which step is not clear to you and what is the nature of your confusion? |
@pcenov , The first time, I chose on my own, but now it's not showing me that option; instead, it's directly taking me to the login page. |
@nick2432 First of all, to reproduce this issue you need to have 2 devices. |
ok ok i understand thank you |
@pcenov I found the issue |
@AlexVelezLl @pcenov Please review my PR |
Hi @nick2432. Thanks for the heads up. |
In the case of passwords, I am not sure there is much we can except say the password is incorrect - perhaps in the future we could detect if CAPS LOCK is enabled, but that's about as much as we could do. For usernames, it seems like we could apply the same logic that we apply to login here, where we allow for case insensitive validation of the username. This would involve updating the public facility username search endpoint https://github.com/learningequality/kolibri/blob/release-v0.16.x/kolibri/core/public/api.py#L360 to do its searches case insensitively instead. |
@rtibbles |
This endpoint only allows for username look up on a remote Kolibri for the import flow, so it is just about returning matching users from the endpoint. I think that is what is at play here after discussion with @jredrejo. |
hey @rtibbles check my new PR |
Observed behavior
Initially I thought that the import of a learner from the server to the LOD is not functioning anymore after the latest changes in #11525. In reality both the username and the password of the learner I was trying to import were in uppercase while I was inputting them in lowercase. Therefore the issue is about the proper validation for uppercase.
2023-11-17_15-49-30.mp4
Expected behavior
The user should see validation for incorrect username and password. This should be fixed for both the learner credentials form and the admin credentials form.
Steps to reproduce the issue
Logs
https://drive.google.com/drive/folders/1OImtokSocwqMa84Yv4acDRn8e8uylv91
Usage Details
Ubuntu 22 - Chrome, Android 13
The text was updated successfully, but these errors were encountered: