since update 0.67.0, the ldap users in the "private message" category on left side only visible with there usernames, not full names

i tried to change the settings in the administration tab (ldap and accounts) but nothing did the trick. On previous version (0.66.0) every things works fine.
i did not find another issue since 0.67.0 release about this issue, so i created one ;)
thanks for your help!

Looks related to #11443 and #11464, neither yet resolved in develop.
Oh, this is bad. Could also reproduce this on our prod system after the upgrade to 0.67.0.
After upgrade from 0.66.0 to 0.67.0 everything looks normal in desktop client, but in browser this issue exists.
@moonwolf-github
relogin in client and you have the same issue, i have it in client and browser
Without LDAP names also no longer displays
FYI, I mitigate this issue with:
$ mongo
> use rocketchat
> function u(username) { return { username: username, result: db.rocketchat_subscription.updateMany({ $and: [ { 't': 'd' }, { 'name': username } ] }, { $set: { fname: db.users.findOne({ username: username }).name }, $currentDate: { _updatedAt: true } }) }; }
> db.rocketchat_subscription.distinct('name', { t: 'd' }).map(function (s) { try { print(s); return u(s); } catch(err) { print('=> Failed') } })
This is due to the v130 migration https://github.com/RocketChat/Rocket.Chat/blob/master/server/startup/migrations/v130.js which replace all fname by the username.
Cheers,
Antoine
I tried to apply this: https://github.com/RocketChat/Rocket.Chat/pull/11544 through editing bundle/programs/server/app/app.js and bundle/programs/server/app/app.js.map and now I am on database migration 130 but still I have only usernames instead of full names in my sidebar.
@antoine-roux
I also updated to v130 successfully. No real names display. I tried your script and it simply says "failed" for every user.
@adipose
Do you type use rocketchat with you database name instead of rocketchat into the mongo cli before executing my snippet?
Note that it's just a mean to deal with the bug... not a fix! It just will set the correct name for existing conversations.
@antoine-roux oddly, after printing the error I discovered that I had a version of mongo that didn't support updateMany. Now, it worked. After refreshing the client, usernames are updated!
Just for reference:
The migration issue should be fixed in PR #11629
So, I found out why my mongodb version was out of date. The instructions for centos suggest using a 2 year old red hat repo for mongodb, which still is pushing MongoDB 2.6. I updated to a different yum repository and updated to 3.4.
I created a pull request for the changes I had to make.
no worries @antoine-roux 馃槂 glad to hear it indeed fixed the issue. thx
After upgrade to 0.68.2 & clearing cache in "messages" names still not displayed.
Any other cache should be cleared?
@andypost
Did you already update the setting under layout to use full names?
clearing cache in "messages"
@andypost sry but that is not what you should do.. you'll have to log out and log in back again.. that will clear your browser's cache and fix the issue. if someone else is still seeing usernames, they will have to log out and log back in to see the real names.
@sampaiodiego Thanks a lot, after logout/login names started to display again but only when I receive new message from contact!
Btw in android app search by nickname now returns 2 contacts when I do seach by nick
@andypost do you mind opening an issue on https://github.com/RocketChat/Rocket.Chat.Android ? thx
cc @rafaelks