Skip to content
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

Contact/Support Form - "From" email field weirdness #4601

Closed
mheppler opened this issue Apr 18, 2018 · 2 comments
Closed

Contact/Support Form - "From" email field weirdness #4601

mheppler opened this issue Apr 18, 2018 · 2 comments

Comments

@mheppler
Copy link
Contributor

While reviewing recent email-related issues #1916 and #4580, I discovered a strange pattern where emails were being sent with the "from" set as the system email and in at beginning of the message body, "From: {user entered email address}" was added. (See commit 6678f44)

In my inbox, I found 5 RT tickets from the last year that illustrate this issue: 260254, 256673, 256284, 250916, 248707.

Those RT tickets show that the user-entered emails did not pass the EMAIL_PATTERN check in MailServiceBean.java, whether it was because of white space not being trimmed (260254, 256673), or the email domains not following the expected pattern (256284, 250916, 248707). Because these perfectly valid email addresses fail this backend validation check, the emails get sent off not with the user entered email address as the "from", but instead the system email is used in it's place.

This should be fixed, as it results in our support team needing to manually copy the email address from the body of the message, in order to reply directly to the user. It can unfortunately result in support responses never getting to the user.

Many thank you's to @kcondon and @pdurbin for helping to identify the cause of issue. We should confirm with @scolapasta about this EMAIL_PATTERN functionality, as it was his commit d05999a originally, in which he added "temp fix" to his comment.

As @kcondon pointed out to me, this same white space issue was originally discovered in #3044 and fixed, but only in the forms users are entering emails which are saved to the database, and not for the contact/support forms in the popups that shoot out emails.

@pdurbin
Copy link
Member

pdurbin commented May 1, 2018

@sekmiller incorporated a bit of feedback from me into pull request #4636 and it's looking good. I put it in QA at https://waffle.io/IQSS/dataverse

@pdurbin pdurbin removed their assignment May 1, 2018
@mheppler
Copy link
Contributor Author

mheppler commented May 1, 2018

@sekmiller I also added my $0.02 of a code review to a comment in the PR which should be addressed before QA picks it up. Phil is just too quick for me on the Code Review draw. (I need to start coming in earlier...)

sekmiller added a commit that referenced this issue May 1, 2018
@kcondon kcondon self-assigned this May 1, 2018
@kcondon kcondon closed this as completed May 2, 2018
@kcondon kcondon removed the Status: QA label May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants