-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Deleted comments can be seen in the HTML code #5571
Comments
Triggered auto assignment to @NikkiWines ( |
Please check the thread here https://expensify.slack.com/archives/C01GTK53T8Q/p1632613507072000 it has more context on the issue |
Looks good for UpWork 👍 applying |
Triggered auto assignment to @SofiedeVreese ( |
@NikkiWines This issue might have to be fixed from the backend. So contributors can work on the backend repo also ? |
oops, yes you're right @akshayasalvi, I misread the slack thread and though we could implement your suggestions here but it does seem like this'll be backend work which contributors do not have access to. |
Hey guys, I don't think this is really a issue, It does not affect the user at all. On the other hand, delete message functionality is built in this way that message are there just they are hidden from the user. I don't think any Normal user will spy the network tab after deleting a message to find the deleted messages. Also, if someone is spying on messages with his account than its does not effect anything. Basically, you can check the network tab while making a bank payment and you would be able to see your password but that doesn't mean your password is not safe. If we really want to tackle this then we have to change the delete message functionality of the app. |
Hmm, I'm not sure I agree. After all, the deleted message persists in the message history beyond just checking the network tab immediately after deleting. The user could log out and log back in (or have their account taken over) and you'd still be able to find the old "deleted" message in the network tab after navigating to the chat. Not saying it's a huge issue, but the deleted messages aren't truly being deleted if we keep a record of them that you can find with relative ease. |
@parasharrajat The issue is that the recipients can see the deleted messages in the network tab.
|
@NikkiWines Huh... This is 4 days overdue. Who can take care of this? |
@NikkiWines 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Working on this issue this week |
@NikkiWines Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
PR is on hold due to N6 feature freeze. |
Sorry, just saw this one for some reason. I believe the original design for this called for keeping edits even when a comment is deleted. (Since deleting a comment is just like editing a comment to be empty). One thing we could do is not send the edit history over the API when a comment is deleted. However, I'm not sure if removing the comment history entirely from storage like we're doing in the linked PR gains us anything. |
Oh cool, I didn't realize our original design aimed to keep the edits even for deleted comments. In that case, I guess we do nothing? I'm happy to look into not sending the edit history as well if we do want to modify this, but if it's working as intended I don't see why we should change it. |
Based on the discussion in slack @chiragsalian had also mentioned the same thing. We shouldn’t send edit history to the user in the API response. |
Yep. I think this is the best way to handle this issue. |
This issue has not been updated in over 15 days. @NikkiWines eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Oh oops, the fix for this has been on prod for roughly 2 weeks now. Closing! |
@NikkiWines @mallenexpensify There'll be a payment for reporting this? |
@akshayasalvi Thanks for the ping. Can you apply here please? And confirm in a comment here when you do? |
Done, @mallenexpensify |
📣 @akshayasalvi You have been assigned to this job by @mallenexpensify! |
Hired @akshayasalvi in Upwork, can you confirm here once the offer had been accepted and I'll pay? |
Accepted :) |
Paid! Thanks @akshayasalvi ! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Deleted comment should not be accessible by the user in any part of the code.
Actual Result:
Deleted comment can be seen in the HTML code.
Workaround:
Not sure if this needs a workaround.
Platform:
Where is this issue occurring?
Version Number: 1.1.2-5
Reproducible in staging?: yes
Reproducible in production?: yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
htmlcode.mp4
Expensify/Expensify Issue URL:
Issue reported by: @akshayasalvi
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1632613507072000
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: