-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Incorrect Email Validation and Persistent display of error message on message selection in MailExportForm #32974
Comments
If the issue is relevant, I want to work upon this |
Thanks for reporting.
I don't think so - 6.11 hasn't been released yet? Please confirm the version.
It looks like you mean it does not validate addresses at all? |
Rocket chat version-6.10.2 yes, the validator do not seems to render the email address properly |
Thanks for your work. I have requested that this be reviewed. Please note that this may take some time as it will have to go in the queue with lots of other work. |
FYI - Community Liaison (reetp) shared this with internal teams and we'll be working on it soon (including review to existing proposed PR) |
I have solved this issue if this is not resolved till now please assign it to me. |
No one assigns issue here. You are free to work on whatever you want. However, please see the previous team response. This already has a PR and is is under review by the team so look at other issues - feature requests is a good place, or look at apps. |
…sage on message selection in MailExportForm RocketChat#32974
Dotless or no TLD emails are valid emails according to the most recent RFC regarding emails (RFC 5322), this is not a bug. |
hey @rique223 , according to RFC 5322 , a general email pattern takes this form: local-part@domain |
Said it once. Please don't keep using @ People will get notifications regardless. Thanks. |
Exactly, and the email in your video follows this pattern, was it supposed to be an example of an invalid email? |
I have linked a pull request #33012 can you check that this resolve the problem |
As per the comment here
And here:
Although it seems a bit incongruous, user@domain is valid according to RFC 5322 and therefore this is not a bug and should be closed. |
This issue has been marked as stale because there has been no further activity in the last 10 days. If the issue remains stale for the next 4 days (a total of 14 days with no activity), then it will be assumed that the question has been resolved and the issue will be automatically closed. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Description:
The
validateEmail
function does not correctly validate email addresses according to the RFC standard. The error message for themessagesCount
field is persistently displayed whenever a message is selected.Steps to reproduce:
Expected behavior:
If an invalid email is entered, it should display an error. Additionally, if the message is not selected first and the send button is clicked, it should display an error. However, if the user then selects the message, the error should not be displayed.
Actual behavior:
Screen.Recording.2024-08-03.at.5.15.55.PM.mov
Server Setup Information:
Client Setup Information
Additional context
Relevant logs:
The text was updated successfully, but these errors were encountered: