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

[HOLD for payment 2023-06-19] [$1000] Workspace settings page can be opened by any non-admin member of the workspace #18910

Closed
1 of 6 tasks
kavimuru opened this issue May 14, 2023 · 50 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented May 14, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Login as user A and create a workspace.
  2. Add user B as a member to the workspace.
  3. Go to Workspace General Settings and copy the URL for the workspace.
  4. Login as user B and open the link you copied previously.

Expected Result:

Not found or Permission denied error should be shown

Actual Result:

The workspace settings page open and allows the user to see / interact with all the forms.

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?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.13.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

Screen.Recording.2023-05-14.at.3.26.19.AM.mov
Recording.606.mp4

Expensify/Expensify Issue URL:
Issue reported by: @allroundexperts
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684016823040309

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013a823356a32c5600
  • Upwork Job ID: 1659230141558759424
  • Last Price Increase: 2023-06-01
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 14, 2023

Triggered auto assignment to @sonialiap (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented May 14, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@allroundexperts

This comment was marked as outdated.

@melvin-bot melvin-bot bot added the Overdue label May 16, 2023
@sonialiap

This comment was marked as outdated.

@melvin-bot melvin-bot bot removed the Overdue label May 16, 2023
@sonialiap
Copy link
Contributor

sonialiap commented May 18, 2023

https://staging.new.expensify.com/workspace/90F7140C34753F91/settings

I can confirm the behavior

  1. Login as user A and create a workspace.
  2. Add user B as a member to the workspace.
  3. Go to workspace settings and copy the URL for the workspace
  4. Login as user B and open the link you copied previously

Expected result: a member of the workspace that is not an admin should not be able to access that workspace's settings. However, instead of the suggested result of throwing an error, I think we should simply redirect the URL to new.expensify.com.

Actual result: following the URL copied and shared by user A allows user B to access A's workspace settings (but doesn't seem to allow B to change anything).

@sonialiap sonialiap added the External Added to denote the issue can be worked on by a contributor label May 18, 2023
@melvin-bot melvin-bot bot changed the title Workspace settings page can be opened by any non-admin member of the workspace [$1000] Workspace settings page can be opened by any non-admin member of the workspace May 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 18, 2023

Job added to Upwork: https://www.upwork.com/jobs/~013a823356a32c5600

@melvin-bot
Copy link

melvin-bot bot commented May 18, 2023

Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented May 18, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 18, 2023

Triggered auto assignment to @yuwenmemon (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@sonialiap
Copy link
Contributor

@allroundexperts what do you think of instead of throwing an error, redirecting user B to new.expensify.com?

@allroundexperts
Copy link
Contributor

@allroundexperts what do you think of instead of throwing an error, redirecting user B to new.expensify.com?

That works as well but it might be confusing for some people.

@victornnaji
Copy link

We can redirect the user to another page. I think, it's good solution.

@melvin-bot
Copy link

melvin-bot bot commented May 18, 2023

📣 @victornnaji! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@LiaKim07
Copy link

Contributor details
Your Expensify account email: kimdubu07lia@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~018b24d677a862774a

@melvin-bot
Copy link

melvin-bot bot commented May 18, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@LiaKim07
Copy link

I think, we can simply redirecting to the new.expensify.com.

@mananjadhav
Copy link
Collaborator

mananjadhav commented May 18, 2023

@sonialiap @yuwenmemon can we confirm the expected result here? We have one of the following:

  1. Redirect them to the Workspace page/chat page
  2. Redirect to Concierge/New Expensify.com (essentially redirecting to the root URL from point 1)
  3. Show Page not found error as below.
image

@melvin-bot melvin-bot bot added the Overdue label May 22, 2023
@sonialiap
Copy link
Contributor

Bringing it up with the team in slack

@melvin-bot melvin-bot bot removed the Overdue label May 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 5, 2023

📣 @allroundexperts You have been assigned to this job by @yuwenmemon!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@allroundexperts
Copy link
Contributor

@mananjadhav @sonialiap Can someone please arrange Spanish translations for this?

@allroundexperts
Copy link
Contributor

allroundexperts commented Jun 5, 2023

PR created #20215

@mananjadhav
Copy link
Collaborator

Please allow me a day to review and test this. I am unwell and would be offline most of the day.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jun 12, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Workspace settings page can be opened by any non-admin member of the workspace [HOLD for payment 2023-06-19] [$1000] Workspace settings page can be opened by any non-admin member of the workspace Jun 12, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 12, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Jun 12, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.26-4 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-06-19. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jun 12, 2023

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:

  • [@mananjadhav / @allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@mananjadhav / @allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@mananjadhav / @allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@mananjadhav / @allroundexperts] Determine if we should create a regression test for this bug.
  • [@mananjadhav / @allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@sonialiap] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 19, 2023
@sonialiap
Copy link
Contributor

@allroundexperts @mananjadhav looks like the fix went through without any regressions 🎉 please complete the checklist and I'll issue payment

@mananjadhav
Copy link
Collaborator

@sonialiap @yuwenmemon I couldn't exactly pinpoint which PR should we tag here for offending PR? The Workspace settings page exist since Workspace module, and the related pages have gone through multiple refactors.

I don't see any need to update on the checklist, but I do think we should use the Tests from the PR as a regression suite. Because it isn't just settings page that we added the check too, but also other workspace pages.

@melvin-bot melvin-bot bot added the Overdue label Jun 22, 2023
@mananjadhav
Copy link
Collaborator

@sonialiap Quick bump on the payout for this one.

@melvin-bot melvin-bot bot removed the Overdue label Jun 23, 2023
@sonialiap
Copy link
Contributor

Thanks for the checklist review, I'll add the issue steps as a regression test.

Offers sent to @mananjadhav and @allroundexperts

@mananjadhav
Copy link
Collaborator

Thanks @sonialiap. I would also like to highlight that this is also eligible for the timeline bonus.

@sonialiap
Copy link
Contributor

I was just opening the PR to review the timeline. You are well within the 3 days. Will add the bonus to both offers during payment 😁

@sonialiap
Copy link
Contributor

Both paid ✅
Sibtain: reporting and fix + bonus
Manan: review + bonus

@melvin-bot melvin-bot bot added the Overdue label Jun 26, 2023
@sonialiap
Copy link
Contributor

Everyone is paid. Submitting regression test steps now. Closing ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants