-
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 sobit] [$1000] Able to by pass 'Admins only' functionality using :emoji in multiple lines #20827
Comments
Triggered auto assignment to @michaelhaxhiu ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Able to by pass 'Admins only' functionality using :emoji in multiple lines What is the root cause of that problem?Inside What changes do you think we should make in order to solve the problem?We should debounce the the bug is no longer reproducible, no matter how many emojis are added in chat. EDIT: 1000 may be too much for the debounce, I see that the bug is not reproducible with 75 either, so I think we should go with a lower value, 75 or near here. |
If you can't reproduce this bug from the first try, you may also try this:
More rows at step 2 = increased delay for the "only admins" change to take effect = easier to reproduce |
looking! |
@michaelhaxhiu if you do not input enough rows of smile: the time window in which you are able to by-pass admins-only is short. Have a look at this: bypass_admins.mp4 |
So like after I delete the 6+ rows of |
Something like that. Each The back-end however, knows about the admins-only, so the messages will not appear to other members, but as I see, no error appears when sending them, and they will remain in your chat afterwards. I still have the messages I've sent in the video in #announce and for me, they appear like they were sent, still no error message appears. Other small problem is that back-end will still let all other users see when you are typing even if it knows about the admins only, as you may see in the video. |
I just tried again and I can't reproduce it still! Sorry. I'm not sure why. If you or @priya-zha can provide more exact instructions I will be glad to try it. |
I think that the last try may look like this: Have 2 apps opened side by side like in your previous video. On left I see you have the administrator user(userA let's say) and on right you have a user which is not an admin(userB):
|
Yes I have tried this again just now step by step. I still can't reproduce. Check it out - https://recordit.co/mU1Br5A7hM |
@michaelhaxhiu I see that you have white spaces in the video, maybe |
Ah ok thanks @DanutGavrus. That did help me reproduce. So, I see there is a lag of time before the chat function is blocked, and we return an error to userB on the messages that appear to be sent (but failed) after-the-fact. https://recordit.co/zjytErISsQ I guess the root bug here is that we should block the chat input more quickly (e.g. instantly after the settings change from |
Job added to Upwork: https://www.upwork.com/jobs/~01f42e4aa901fd1f2a |
Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
@michaelhaxhiu Glad I was able to help you reproduce. I was not aware of those error messages, I will check again tomorrow as it's 0:30am here, and come back to you with a reply. From what I remember, the fact that the chat was updated to Maybe you could also look above at my proposal when you have the time? |
No problem! Talk tomorrow :) And yes your proposal is first to be reviewed :). Thanks for your continued involvement here. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.37-7 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 2023-07-14. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
@sobitneupane @michaelhaxhiu bump on BZ checklist / payment here |
Sorry for delay, payment is as follows:
|
@sobitneupane are you being paid lately via Upwork or newDot? |
Invited Priya & Tien to the job in Upwork |
@michaelhaxhiu I will request payment via newDot. |
Ok cool, got it! Can you work on the checklist as the next step? |
Update: Contributor & bug reporter are paid. Just waiting for sobit to confirm payment was made and complete the checklist. |
@sobitneupane have you requested payment yet? Can you work on the checklist today? |
The issue was introduced while adding the functionality of frequently used emojis 2 years back.
It's an edge case and very difficult to reproduce. I don't think this could have been caught in PR review.
No. It is an edge case and might be difficult to test. |
Requested payment on newDot. |
cool, all set - closing. |
Reviewed details for @sobitneupane. This is accurate based on summary from Business Reviewer and approved for payment in NewDot. |
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:
:smile:
(first colon and emoji name), and then copy the ":smile:
"Expected Result:
A user should not be able to type in the workspace after 'Admins only' is selected.
Actual Result:
A user is able to type in the workspace chat after the 'Admins only' setting is selected, by using ":emoji:" pasted in succession for multiple rows. This introduces so type of lag that allows the user to keep typing
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.28-3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
error-2023-06-05_19.15.24.mp4
Recording.978.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685972438902859
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: