-
Notifications
You must be signed in to change notification settings - Fork 577
Fixes #5972: Profile name accepts invalid inputs like single dot (.) or single space ( ) #5997
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
base: develop
Are you sure you want to change the base?
Fixes #5972: Profile name accepts invalid inputs like single dot (.) or single space ( ) #5997
Conversation
adhiamboperes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ShankhanilSaha! I have reviewed the PR and left some comments. Also, please take a look at the CI results -- tests in ProfileManagementControllerTest are failing due to the changed logic. Please locate the failing tests and either fix them, or verify whether the new logic is working correctly.
Please also reach out if you have any questions.
utility/src/main/java/org/oppia/android/util/profile/ProfileNameValidator.kt
Outdated
Show resolved
Hide resolved
utility/src/main/java/org/oppia/android/util/profile/ProfileNameValidator.kt
Outdated
Show resolved
Hide resolved
|
Hi @adhiamboperes, the tests are primarily failing because of the tests in |
|
@adhiamboperes could you please check the error logs once, some tests were failing previously so i fixed them by changing the functions to |
|
@ShankhanilSaha I've re-run the tests, they should work fine now. |
|
@adhiamboperes upon making the file changes in this PR a few tests fail in |
|
Hi @ShankhanilSaha, those tests are failing because they rely on the |
|
Looking at the traces, it appears that the failing functions rely on an exception that has changed, so there are changes needed downstream as well. I need to review the code first. |

Explanation
Fixes #5972
utility/src/main/java/org/oppia/android/util/profile/ProfileNameValidator.ktto only allow names which have only alphabets and spaces.Essential Checklist