-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Profile picture also changes on changing the username #24132
Comments
hey @try-catch-stack , may I know what version of Rocket.Chat server are you using ? |
Latest version |
Yes I also face this issue! |
Confirm that bug on 4.2.2 |
In our case this was so bad that when we changed the name of the user in admin console session, that session somehow started showing and avatar of completely different person from a completely different RC instance that was open in another tab. This indicates some kind of cache leak between completely separate RC sessions on the same browser. RC version 4.3.1. |
Hello @try-catch-stack, are you working on this issue? |
Hey @Ayush01729 , code for the edit profile section can be found in AccountProfileForm.js file present in client>views>account , but we are still unsure about the reason causing the issue . As quoted above , it is probably due to some sort of cache leak between different sessions. |
Update to the claim of mine that cache between sessions might leak. There is a possibility that the location where I spotted the issue with completely wrong person avatar had once had had an account of that person on the instance a year ago. So it is possible that while the user had been deleted long time ago, his avatar might not have been deleted from the system database because of some bug in the handling of avatars during the account deletion. If it was not a cache issue, RC simply fetched the wrong avatar from the database for the user who even didn't have one to begin with. |
Hey guys! I'm trying to reproduce in |
I can still reproduce it on the Open community server.Is it on the version |
I observed this - or a similar issue - in our installation. In our case it is more obscure:
We are using LDAP for all accounts. Changing the user name is therefore not possible. Automatic LDAP sync is also disabled. (edit) We are currently using version 4.3.2, I see a chance that exactly the update introduced the issue. I cannot remember the previous version, but I think it was 4.2.X. |
Also, this might be a new issue, as admin I cannot delete or change other user's avatars. Let me know whether I should open a new issue entry for this. |
Could be related to this #24100? |
Just updated our servers from 3.18.3 to 4.3.3 and got reports from a lot of users that their profile picture has changed to a profile picture of someone else. We use LDAP as authentication/user sync, but Sync User Avatar is NOT enabled. This is a nasty bug. |
Same issue on self-hosted 4.4.1 docker compose deployment. We are not using LDAP. |
More info about the case. Our system was totally messed up with user profile pictures, so we decided to delete all avatar data from mongoDB:
After a user avatar update there was a single entry in rocketchat_avatars:
After a while, the same (!) entry was changed with some other user data:
Note that only We have LDAP -> Data Sync -> Update User Data on Login enabled Note that we do have LDAP -> Data Sync -> Avatar -> Sync User Avatar disabled |
Same here: After we upgraded to 4.4.2 it seemed that sometimes the avatars change at random. I could not yet identify any pattern or solution to this but the users on my RC-instance are getting a little confused. |
Still running 4.3.3, but I have some update/confirmation about the triggering setting (at least for us). I changed LDAP -> Data Sync -> Update User Data on Login enabled Not sure if these settings have any role here, but just in case they have, we have the following non-default Accounts -> Avatar settings: |
We have the exact same setup and issue. Something strange is happening to the avatars, either they go missing or users suddenly had images from different people. |
On RC 4.5.5 I can confirm this issue still happens exactly when changing the username. Changes to any other user information do not trigger the bug. Having merge off in the ldap settings works around it, but it is not a preferred solution. For instance when the username has been chosen to be email directly, and when the surname changes due to changes in user's marital status, merge is the only automated solution that does not create completely new account when the user logs in next time using LDAP. So our options currently are risking the avatar roulette with merge enabled, or with merge disabled doing any actual username changes manually in coordinatation with the users themselves. |
Any update on this? |
Still have the issue on my installation, still no dev answer, Rocket.Chat being ready for real use is really a big joke, all it done was to convince me Slack premium is worth the money.... |
Could be fixed in #25603 |
Related: #26033 |
Hi there, thanks for the contribution! 🚀 💯 Sorry, this error does not happen on the latest and maintained releases. Rocket.Chat provides support for, at least, 3 months for each release and 6 months to the latest releases of each major version I would suggest you update your Rocket.Chat version to the latest stable version, which you can find in Releases Page and, check it HERE the table with versions and End of Life dates. Questions? Help needed? Feature Requests?
|
Description:
On changing the username , the profile picture also changes (Sometimes) to some random user's profile picture . This profile picture maybe of some user with the same username in the past.
Steps to reproduce:
Expected behavior:
The original profile picture(The one before changing the username) should be retained.
Actual behavior:
Profile picture changes to some random image.
Rocket.Chat.2022-01-10.18-05-30.mp4
Server Setup Information:
Client Setup Information
Additional context
Relevant logs:
The text was updated successfully, but these errors were encountered: