-
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
[HOLD for payment 2024-07-24] [$250] Public room - User is able to leave public room when user is not logged in #43404
Comments
Triggered auto assignment to @garrettmknight ( |
We think this issue might be related to the #vip-vsb |
ProposalPlease re-state the problem that we are trying to solve in this issue.Users can leave a public room without being logged in. What is the root cause of that problem?The leave button is displayed regardless of whether the user is anonymous or not. App/src/pages/ReportDetailsPage.tsx Line 207 in 60530f6
What changes do you think we should make in order to solve the problem?We need to add a condition to check for anonymous users before displaying the leave button, similar to other parts of the application. Add App/src/pages/ReportDetailsPage.tsx Line 207 in 60530f6
What alternative solutions did you explore? |
ProposalPlease re-state the problem that we are trying to solve in this issue.User is able to leave public room when user is not logged in What is the root cause of that problem?We have set App/src/pages/ReportDetailsPage.tsx Lines 207 to 212 in 60530f6
What changes do you think we should make in order to solve the problem?The expected results is to redirect the user to login page, so we need to set Result VideoScreen.Recording.2024-06-11.at.1.11.52.AM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - Error page when navigating to Workspace Join link after leaving the workspace What is the root cause of that problem?The root cause of the problem is that in the App/src/pages/ReportDetailsPage.tsx Line 207 in 65db650
What changes do you think we should make in order to solve the problem?Change the code snippet above and use the
|
Job added to Upwork: https://www.upwork.com/jobs/~012198a597d90e1a9d |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
ProposalPlease re-state the problem that we are trying to solve in this issue:The problem is that an anonymous (not logged in) user can leave a public room by clicking the "Leave" button in the public room chat header. Instead of being prompted to log in, the user is able to leave the room, and the public room reappears. What is the root cause of that problem?The root cause of this problem is that the leave action is not correctly checking for the user's authentication status before executing. The logic to handle the leave action does not verify if the user is logged in, allowing anonymous users to perform actions that should be restricted to authenticated users. What changes do you think we should make in order to solve the problem?To address this issue, we need to:
Example of changes:
What alternative solutions did you explore?
Please note that the above explanation outlines only the technical approach I plan to take, as mentioned. Regards. |
ProposalPlease re-state the problem that we are trying to solve in this issue.User is able to leave the public room, and the public room reappears. What is the root cause of that problem?When the user views the room before logged in, they are essentially "anonymous" users. So they're technically not part of the room yet, that's also the reason for the So the anonymous user should only be able to join the room, not leave the room. What changes do you think we should make in order to solve the problem?We should hide
This will make sure the button is hidden in both the
What alternative solutions did you explore? (Optional)NA |
@situchan can you have a look at these when you get chance? Thanks! |
This is the expected result. @codinggeek2023's proposal makes sense but I asked author why EDIT: confirmed |
Let's go with @codinggeek2023's proposal! |
Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @codinggeek2023 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-07-24. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Triggered auto assignment to @greg-schroeder ( |
@greg-schroeder just handing this one off while I'm OOO - only awaiting the checklist. If it doesn't get done by the time I'm back I'll pick back up. Thanks! |
Regression Test Proposal
|
Adding regression test 👍 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.81-3
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
Login modal will open.
Actual Result:
User is able to leave the public room, and the public room reappears.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6508355_1718037560053.bandicam_2024-06-11_00-34-48-344.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @greg-schroederThe text was updated successfully, but these errors were encountered: