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

[$250] Editing comment with image attachment fails to load the image when cache expires #42206

Open
1 of 6 tasks
m-natarajan opened this issue May 15, 2024 · 60 comments
Open
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review

Comments

@m-natarajan
Copy link

m-natarajan commented May 15, 2024

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:
Reproducible in staging?:
Reproducible in production?:
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
Expensify/Expensify Issue URL:
Issue reported by: @kidroca
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1715767781452439

Action Performed:

  1. Type text and add an image attachment.
  2. After sending the comment, inspect the tag for data-expensify attributes.
  3. Edit the comment and make a trivial change to the text before the attachment.
  4. Observe that the tag no longer has data-expensify attributes.
  5. Disable cache in dev tools, or clear cache and reload the page.
  6. Observe that the edited comment no longer loads the image.
    LINK: https://staging.new.expensify.com/r/5708510475809890

Expected Result:

Editing a comment, clearing cache, and reloading the page should display the comment and the image attachment.

Actual Result:

Clearing cache and reloading shows the comment and a placeholder box instead of the image attachment.
More details here: #41952 (comment)

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

330751938-58ed8062-5520-41f2-a971-dc291af9956f.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018082d3734c0fe3cf
  • Upwork Job ID: 1792320613124546560
  • Last Price Increase: 2024-06-10
Issue OwnerCurrent Issue Owner: @
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 15, 2024
Copy link

melvin-bot bot commented May 15, 2024

Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@m-natarajan
Copy link
Author

@mallen tagging you as per this comment

@jliexpensify
Copy link
Contributor

@m-natarajan you've tagged the wrong person. cc @mallenexpensify

@mallenexpensify mallenexpensify added the Internal Requires API changes or must be handled by Expensify staff label May 19, 2024
Copy link

melvin-bot bot commented May 19, 2024

Job added to Upwork: https://www.upwork.com/jobs/~018082d3734c0fe3cf

Copy link

melvin-bot bot commented May 19, 2024

Triggered auto assignment to Contributor Plus for review of internal employee PR - @rushatgabhane (Internal)

@melvin-bot melvin-bot bot removed the Overdue label May 19, 2024
@mallenexpensify
Copy link
Contributor

Labeled internally and added to #vip-vsb cuz it doesn't have to do with money. All yours JLi

@melvin-bot melvin-bot bot added the Overdue label May 22, 2024
Copy link

melvin-bot bot commented May 23, 2024

@rushatgabhane, @jliexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@jliexpensify
Copy link
Contributor

Not overdue, waiting on an Engineer to pick this up.

@melvin-bot melvin-bot bot removed the Overdue label May 27, 2024
Copy link

melvin-bot bot commented May 29, 2024

@rushatgabhane @jliexpensify this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label May 29, 2024
@jliexpensify
Copy link
Contributor

Not overdue

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 30, 2024
Copy link

melvin-bot bot commented Jun 4, 2024

@rushatgabhane, @jliexpensify Huh... This is 4 days overdue. Who can take care of this?

@rushatgabhane
Copy link
Member

internal. not overdue

@melvin-bot melvin-bot bot removed the Overdue label Jun 4, 2024
@rushatgabhane
Copy link
Member

🎀 👀 🎀 assign internal

Copy link

melvin-bot bot commented Jun 4, 2024

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

@amyevans
Copy link
Contributor

amyevans commented Jun 6, 2024

Sorry, I don't have bandwidth to take this, unassigning!

@amyevans amyevans removed their assignment Jun 6, 2024
@melvin-bot melvin-bot bot added the Overdue label Sep 9, 2024
@mountiny
Copy link
Contributor

mountiny commented Sep 9, 2024

focusing on workspace feeds wave-collect

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 9, 2024
@jliexpensify
Copy link
Contributor

Not overdue

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 12, 2024
@mountiny
Copy link
Contributor

I was talking with @mjasikowski that he might be able to take this on later in the week

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 16, 2024
Copy link

melvin-bot bot commented Sep 19, 2024

@rushatgabhane, @jliexpensify, @mountiny Whoops! This issue is 2 days overdue. Let's get this updated quick!

@jliexpensify
Copy link
Contributor

Not overdue

@melvin-bot melvin-bot bot removed the Overdue label Sep 19, 2024
@mountiny
Copy link
Contributor

@mjasikowski will help out here 💪

@jliexpensify
Copy link
Contributor

Assigned!

@mjasikowski
Copy link
Contributor

FInally have time to dig into this.

@mountiny mountiny removed their assignment Sep 24, 2024
@mountiny mountiny removed the Hot Pick Ready for an engineer to pick up and run with label Sep 25, 2024
@mountiny
Copy link
Contributor

was able to repro still

Screen.Recording.2024-09-25.at.10.12.04.mp4

@mjasikowski
Copy link
Contributor

Current findings:

  • Web-Expensify does strip extra attributes form img tags via sanitizeAndValidateComment
  • Unfortunately, Expensify-Common does this as well in ExpensiMark.ts, making the tags stripped before we even get to the UpdateComment API call

@mjasikowski
Copy link
Contributor

There's a draft expensify-common PR now adding attribute caching support to ExpensiMark.ts, I'll try to do a full test tomorrow.

@mjasikowski
Copy link
Contributor

It turns out that only expensify-common fix is enough, and that's ready in Expensify/expensify-common#808

@mjasikowski
Copy link
Contributor

PR still under review

@mjasikowski mjasikowski added the Reviewing Has a PR in review label Sep 27, 2024
@mjasikowski
Copy link
Contributor

mjasikowski commented Sep 29, 2024

https://github.com/Expensify/Web-Expensify/pull/43729 was needed after all, submitted that too

@jliexpensify
Copy link
Contributor

Hi @mjasikowski - just a heads up to let you know I'll be OOO from the 3rd to 14th.

I'll prep a Payment Summary, I think this is all that's needed from me:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review
Projects
No open projects
Status: No status
Development

No branches or pull requests