Skip to content

Web - Receipt page tries load when an attachment is present #25784

Closed

Description

@izarutskaya

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. Click on FAB
  2. Click on request money
  3. Enter amount and click next
  4. Select new account
  5. Open the request that you have sent
  6. Set a description
  7. Upload an image
  8. Open the image
  9. Click on previous arrow
  10. Click on Download

Expected Result:

The receipt image should not load with the attachment image

Actual Result:

The receipt image tries to load and when you hit download button it redirects to 404 page

Workaround:

Unknown

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: v1.3.56-18

Reproducible in staging?: Y

Reproducible in production?: N

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

Receipt.mp4
Recording.1301.mp4

Expensify/Expensify Issue URL:

Issue reported by: @jo-ui

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692782659149089

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01533b81d3403a95b1
  • Upwork Job ID: 1694767523202289664
  • Last Price Increase: 2023-08-24

Activity

  1. added
    Daily
    Bug
    on Aug 23, 2023
  2. melvin-bot commented on Aug 23, 2023

    @melvin-bot

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

  3. melvin-bot commented on Aug 23, 2023

    @melvin-bot

    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
  4. added
    DeployBlockerCash
    on Aug 23, 2023
  5. OSBotify commented on Aug 23, 2023

    @OSBotify
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. melvin-bot commented on Aug 23, 2023

    @melvin-bot

    Triggered auto assignment to @thienlnam (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  7. StevenKKC commented on Aug 23, 2023

    @StevenKKC
    Contributor

    It seems like intended.

    const transaction = TransactionUtils.getTransaction(transactionID);
    if (TransactionUtils.hasReceipt(transaction)) {
    const {image} = ReceiptUtils.getThumbnailAndImageURIs(transaction.receipt.source, transaction.filename);
    attachments.unshift({
    source: tryResolveUrlFromApiRoot(image),
    isAuthTokenRequired: true,
    file: {name: transaction.filename},
    isReceipt: true,
    });
    return;
    }

  8. thienlnam commented on Aug 23, 2023

    @thienlnam
    Contributor

    cc @mountiny / @luacmartins Do you know if this is intended?

  9. luacmartins commented on Aug 23, 2023

    @luacmartins
    Contributor

    This is not intended. There was no receipt attached in this case. Why is TransactionUtils.hasReceipt(transaction) returning true?

  10. 27 remaining items

  11. jo-ui commented on Sep 6, 2023

    @jo-ui

    @adelekennedy This issue has been 13 days since the PR was merged to production

  12. adelekennedy commented on Sep 6, 2023

    @adelekennedy
    Contributor

    @luacmartins @mountiny what's the deal for payments here - just the reporting bonus?

  13. luacmartins commented on Sep 7, 2023

    @luacmartins
    Contributor

    Yes, just reporting bonus. The fix and reviews were all internal.

  14. jo-ui commented on Sep 11, 2023

    @jo-ui

    @adelekennedy Should I apply for the upwork job above for the reporting bonus?

  15. jo-ui commented on Sep 14, 2023

    @jo-ui

    @adelekennedy any updates?

  16. adelekennedy commented on Sep 14, 2023

    @adelekennedy
    Contributor

    @jo-ui yes please!

  17. adelekennedy commented on Sep 14, 2023

    @adelekennedy
    Contributor

    Payouts due:

    Issue Reporter: $250 @jo-ui

    Upwork job is here.

  18. jo-ui commented on Sep 14, 2023

    @jo-ui

    @adelekennedy can you please send me an offer it is saying " The job is private"

  19. jo-ui commented on Sep 18, 2023

    @jo-ui

    @adelekennedy any updates?

  20. adelekennedy commented on Sep 19, 2023

    @adelekennedy
    Contributor

    whoops - this link @jo-ui

  21. jo-ui commented on Sep 19, 2023

    @jo-ui

    @adelekennedy I've applied for the job

  22. adelekennedy commented on Sep 19, 2023

    @adelekennedy
    Contributor

    paid!

  23. melvin-bot commented on Sep 26, 2023

    @melvin-bot

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

  24. luacmartins commented on Sep 27, 2023

    @luacmartins
    Contributor

    Seems like everyone is paid out and we're good to close. Thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyEngineeringInternalReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions