Not able to register EPerson account for email address with TLD of more than 4 characters #2586
Labels
authentication: general
general authentication issues
authentication: password
related to built in password authentication
bug
good first issue
This is a smaller ticket/bug that may be easier for new contributors
help wanted
Needs a volunteer to claim to move forward
Describe the bug
Most TLDs are usually very short (.com, .edu, ...)
But there are realy TLDs and real usecases where the TLD is longer. The largest one is currently 24 characters long cfr
https://stackoverflow.com/a/22038535/3101995
To Reproduce
Observed behavior
Angular blocks creation of this account
Expected behavior
I should be able to register an account
The fix
Change 4 to 24 at the very end of the pattern here:
https://github.com/DSpace/dspace-angular/blob/main/src/app/access-control/epeople-registry/eperson-form/eperson-form.component.ts#L255
Workaround
If you are confronted with this problem and urgently need EPeople created with TLD email addresses + 4 characters, know that this validation is NOT applied when you create EPeople through the REST command line using:
[dspace]/bin/dspace create-administrator
Obviously, this command creates an administrator account. If you don't want the account to be an administrator, make sure you subsequently remove the person from the admin group in the user interface!!!
Related work
Link to any related tickets or PRs here.
The text was updated successfully, but these errors were encountered: