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

Username shows in push notification even when disabled (2.4.1) #17210

Closed
JoshMcCullough opened this issue Apr 8, 2020 · 6 comments
Closed

Username shows in push notification even when disabled (2.4.1) #17210

JoshMcCullough opened this issue Apr 8, 2020 · 6 comments

Comments

@JoshMcCullough
Copy link
Contributor

Description:

We've toggled off the options Push_show_username_room and Push_show_message in admin. Push notifications correctly do not show the message, but they still show the sender's username. I've looked through the source, and see this line here which looks correct, but indeed -- for some reason it is not working. I also restarted the server, just in case, after toggling these options off.

Here is the setting in the DB:

{
        "_id" : "Push_show_username_room",
        "type" : "boolean",
        "public" : true,
        "group" : "Push",
        "section" : "Privacy",
        "packageValue" : true,
        "valueSource" : "packageValue",
        "hidden" : false,
        "blocked" : false,
        "sorter" : 16,
        "i18nLabel" : "Push_show_username_room",
        "i18nDescription" : "Push_show_username_room_Description",
        "autocomplete" : true,
        "ts" : ISODate("2020-02-12T23:40:03.387Z"),
        "_updatedAt" : ISODate("2020-04-08T03:35:24.710Z"),
        "createdAt" : ISODate("2019-05-02T01:02:55.776Z"),
        "value" : false,
        "secret" : false
}

Note that value is false -- again, seems correct.

Steps to reproduce:

  1. disable privacy settings under Admin > Push > Privacy
  2. send a message to a user who is using the mobile app
  3. user will see a notification which still includes the sender's username

Expected behavior:

Sender's username should not appear in the notification.

Actual behavior:

Sender's username does appear in the notification.

Server Setup Information:

  • Version of Rocket.Chat Server: 2.4.1
  • Operating System: RHEL 7
  • Deployment Method: Docker: rocketchat/rocket.chat:2.4.1
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: 8.17.0 (in Docker image)
  • MongoDB Version: 4.0.9

Client Setup Information

  • Desktop App or Browser Version: Chrome
  • Operating System: Manjaro (and Android for mobile app)
@rcadmin19
Copy link

Also reported here: #17135. This is a security issue and should indeed fixed soon.

@JoshMcCullough
Copy link
Contributor Author

Whoops. I think I didn't find it because it doesn't mention the setting name. Thanks!

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stat: stale Stale issues will be automatically closed if no activity label Jun 19, 2020
@sampaiodiego
Copy link
Member

notifications have received a few rewrites by now and it should be fixed.. please test with latest version 3.3.0. thx

@sampaiodiego sampaiodiego added stat: need more info and removed stat: stale Stale issues will be automatically closed if no activity labels Jun 21, 2020
@JoshMcCullough
Copy link
Contributor Author

Confirmed, this appears to be fixed in 3.1.1 (at least). Thanks.

@sampaiodiego
Copy link
Member

thanks @JoshMcCullough .. I'll close the issue then. 👍

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

4 participants