[For 10.4] Add validation for sender email address#36505
Conversation
|
@owncloud/qa would be good to have this covered by tests. |
|
code style is failing, looks like indent issues - see https://drone.owncloud.com/owncloud/core/21653/2/6 |
|
@micbar if you think this can get into 10.4 then please add to the 10.4.0 project and we can add some acceptance tests this week. |
|
@phil-davis Done. |
b7a6feb to
f8818bb
Compare
|
@haribhandari07 please assign someone to write some relevant acceptance test scenarios |
f8818bb to
c769ff7
Compare
Codecov Report
@@ Coverage Diff @@
## master #36505 +/- ##
============================================
+ Coverage 64.66% 64.66% +<.01%
- Complexity 19023 19025 +2
============================================
Files 1268 1268
Lines 74393 74398 +5
Branches 1311 1311
============================================
+ Hits 48104 48108 +4
- Misses 25903 25904 +1
Partials 386 386
Continue to review full report at Codecov.
|
c769ff7 to
c4c59aa
Compare
b0c99e9 to
527b906
Compare
|
https://drone.owncloud.com/owncloud/core/21690/3/7 |
|
@haribhandari07 please be careful adding a commit with tests. This branch is still being force-pushed so it will be easy for your commit/code to get lost. Maybe work in a branch on top of this. |
d013b0a to
f9d81db
Compare
|
@pako81 the acceptance tests added by @haribhandari07 have disappeared with your force push. @haribhandari07 please find your local commit with the tests and add it again to this PR. |
phil-davis
left a comment
There was a problem hiding this comment.
I will squash the commits.
5d9321b to
aa63dc0
Compare
|
thanks @phil-davis @micbar @karakayasemi @haribhandari07 ! |
Description
This PR adds validation for the sender e-mail address when using the e-mail notification mechanism for public links as well as internal shares.
Motivation and Context
Given the following scenarios:
Scenario 1:
NULLset in oc_accounts table)notify by emailbutton: an error appears and the user cannot be notifiedScenario 2:
User1 (who does not have an email address) creates a brand new file or folder, creates a public link out of it and clicks on the
Send link via emailbutton in order to notify an external user. Also, in this case, the same error as above is returned.How Has This Been Tested?
Manually by testing the two scenarios above and make sure no error is returned and e-mail is correctly delivered.
Types of changes
Checklist: