-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
"Email address changed" email #6517
Comments
Looks like an interference with LDAP and the user manager. |
Same email address is checked in master: Lines 148 to 153 in 1f843e6
This is also the case in 12.0.1 and later: So it's not us, but more of a LDAP issue or something else |
Yes, but it seems that $oldMailAddress is wrongly filled with someone elses email because the email doesn't get sent to the correct recipient |
Is there any way I can change the code to log $oldMailAddress to the logfile? Just so I can check my suspicion... |
In file if ($oldMailAddress === $user->getEMailAddress() || before add: \OC::$server->getLogger()->debug('Changing email from ' . $oldMailAddress . ' to ' . $user->getEMailAddress()); |
Hello. We have got the exact same behavior in NC 12.03.3, except using a different server OS and a different LDAP-Server. Is there something new about this? |
LDAP delegates setting the email address to the core user object. There was a bug when an event was always triggered, however that has been fixed in 12.0.1 #5216. Nevertheless, the settings handler (which would send the mail) had had the check already. What might be possible: some whitespace got included and changed in their. But to really know what happens, get debug output as described by @nickvergessen in #6517 (comment) |
Thx will debug ... |
Hello. Here is the part from the LOG {"reqId":"n0FhYrETcnYC1ZGcxF2C","level":0,"time":"November 13, 2017 22:17:04","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"Changing email from s8ru***@xxx.de to s8okb***@xxx.de","userAgent":"--","version":"12.0.3.3"} {"reqId":"F2vxTdk5So46Q5hIMAkZ","level":0,"time":"November 13, 2017 22:30:21","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"Changing email from s8okb***@xxx.de to s8ru***@xxx.de","userAgent":"--","version":"12.0.3.3"} Also I have noticed that the mail is being sent to more than one recipients. What else can be checked? |
@alexfauss so the email is changed to one address and then to the other. So, the behaviour is correct. From LDAP, only the first address is read and returned. What else could trigger applying the second address? |
@blizzz thats true. Sometimes the mail is sent to 3 or 4 different User. |
But where do they come from? |
Hmmh. The only suspicious entries in the log are {"reqId":"C6De3km9Gb7FtSWJRZCK","level":0,"time":"November 14, 2017 13:15:01","remoteAddr":"","user":"--","app":"user_ldap","method":"--","url":"--","message":"Ready for a paged search","userAgent":"--","version":"12.0.3.3"} |
@alexfauss no, not really. Rather I wonder, in which data source is the other email address saved? From LDAP only the first should be retrieved. |
@blizz All mail addresses are stored in ldap except my admin account. |
@alexfauss can you name steps to reproduce this behaviour? |
@blizz not really. The problem first occur after upgrading from owncloud to nextcloud. And after every upgrade other users (3-6) are affected by the problem. Right now I have set e smtp filter which is piping all mails regarding that problem to /dev/null. So the user are not bothered. |
@alexfauss I wasn't able to to reproduce the issue. From LDAP we always take the first email that is returned. It's unlikely but not impossible that a server implementation may send it in varying order… Which LDAP server are you using? Or the values often updated at that place? Also, can you change the debug output from #6517 (comment) and replace it with following line? This will enricht the output with a stack trace.
|
@alexfauss it's been a while… is this still an issue? |
@blizzz It seems this has been fixed, because we haven't received such emails lately |
K, thx. Then let me close it. If it appears, we can reopen. |
Steps to reproduce
Expected behaviour
No email notification should arrive if the email stays the same. Notifications should go to the correct users.
Actual behaviour
Users get email notifications regarding email changes of a different user. See related issue: #5169 Even though the email is the same and hasn't changed!
It seems $oldMailAddress is an email of a different user, because users get emails with
<OtherName> theiremail@domain.com
and the whole email is about OtherName (OtherNames email is the new email).Server configuration
Operating system:
Ubuntu 16.04.3
Web server:
Nginx 1.10.3
Database:
Mysql 5.7.19
PHP version:
7.0
Nextcloud version: (see Nextcloud admin page)
12.0.2
Updated from an older Nextcloud/ownCloud or fresh install:
12.0.0 fresh install, then updated through 12.0.1
Where did you install Nextcloud from:
downloaded from nextcloud server
Signing status:
Signing status
``` No errors have been found. ```List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one:
no
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one:
LDAP
LDAP configuration (delete this part if not used)
LDAP config
The text was updated successfully, but these errors were encountered: