You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This specific user's data has been warning for 5 month. This user was created on 2022-07-19 with Full Name containing URL (https//) on it, so it kept failing to create user on open edX because it couldn't pass the validation on name field (contains_url implemented on open edX platform)
def validate_name(name):
"""
Verifies a Full_Name is valid, raises a ValidationError otherwise.
Args:
name (unicode): The name to validate.
"""
if contains_html(name):
raise forms.ValidationError(_('Full Name cannot contain the following characters: < >'))
if contains_url(name):
raise forms.ValidationError(_('Enter a valid name'))
I've updated this user's full name to match with first_name+last name from legal address, that has stopped this sentry error. I've also confirmed that this user has been created on open edx successfully.
As for the exception message, It seems to clear to me Failed to repair faulty user inspection along with Enter a valid name. Also I believe this should not happen again as we have implemented validation on name field recently (see here), there are open issues for NAME_REGEX, but users should not be able to create a account with invalid name anymore
@pdpinch FYI, it's all set. But feel free to open it if you think we should update the exception message
Two things:
Sentry Issue: MITXONLINE-2PD
The text was updated successfully, but these errors were encountered: