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-07-24] [$1000] Unable to Upload PDF & JPEG files that contains a space in the file title #22219

Closed
1 of 6 tasks
kavimuru opened this issue Jul 4, 2023 · 43 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 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Jul 4, 2023

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:

  1. Go to any chat
  2. click plus button on the composer and upload a Password Protected PDF attachment with a space in the title (example below)
  3. Observe the error, then dismiss the error
  4. now attach a regular PDF that has a space in the title (example below)
  5. Observe the error, then dismiss the error
  6. now attach a PNG file that has a space in the title
  7. Observe the error again

Expected Result:

able to upload file attachments that contain a space in the file name

Actual Result:

Unexpected error while posting the comment.

"Unexpected error while posting the comment, please try again later. Invalid file attachment"

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.37-2
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

Test54_Pdfupload-1.mp4
Recording.1163.mp4
Z1uG9cr94S.mp4

DATTARAM_SAWANT_AADHAR_CARD 1_.pdf

Example With Space.pdf

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01dc241c0a0b2ba919
  • Upwork Job ID: 1676993011268341760
  • Last Price Increase: 2023-07-06
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 4, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 4, 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

@OSBotify
Copy link
Contributor

OSBotify commented Jul 4, 2023

👋 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.

@melvin-bot
Copy link

melvin-bot bot commented Jul 4, 2023

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

@marcochavezf
Copy link
Contributor

I can't reproduce the issue with the provided pdf on both staging and dev (latest main):

Screenshot 2023-07-04 at 18 48 24 Screenshot 2023-07-04 at 18 48 30

@trjExpensify
Copy link
Contributor

Me neither on staging mac chrome:

image

Let's take this to the thread, I've noticed a couple of things from the video:

  1. It's windows not mac
  2. the preview of the PDF is different than the one supplied

I don't think this is a deploy blocker.

@Julesssss Julesssss added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jul 5, 2023
@Julesssss
Copy link
Contributor

Thanks both. I'm also unable to reproduce so I'm downgrading it from being an App release blocker. Also would be happy to just close it, based on the outcome of the thread discussions.

@trjExpensify
Copy link
Contributor

Cool, sounds good. I've asked the contributor to retry once and supply that PDF before I close it out.

@kavimuru
Copy link
Author

kavimuru commented Jul 6, 2023

@trjExpensify This is happening to me inconsistently. One more contributor reproduced here

@dhanashree-sawant
Copy link

@trjExpensify, @Julesssss, I was able to recreate it consistently if I used password protected PDF with space in name and sent the PDF in offline mode. I was able to reproduce on mac too using it. Maybe this info can help.

@trjExpensify
Copy link
Contributor

Requesting the file in slack to try and then include here!

@trjExpensify
Copy link
Contributor

Okay, that'll do it! Either online or offline I get the same results with a password protected PDF which includes a space in the title.

image

@trjExpensify trjExpensify changed the title Unable to Upload PDF file Unable to Upload Password Protected PDF file that contains a space in the file title Jul 6, 2023
@trjExpensify trjExpensify changed the title Unable to Upload Password Protected PDF file that contains a space in the file title Unable to Upload PDF file that contains a space in the file title Jul 6, 2023
@trjExpensify trjExpensify changed the title Unable to Upload PDF file that contains a space in the file title Unable to Upload PDF & PNG files that contains a space in the file title Jul 6, 2023
@trjExpensify trjExpensify changed the title Unable to Upload PDF & PNG files that contains a space in the file title Unable to Upload PDF & JPEG files that contains a space in the file title Jul 6, 2023
@trjExpensify
Copy link
Contributor

Okay, I can repro this with multiple file types that contain spaces in the name.

Z1uG9cr94S.mp4

@trjExpensify trjExpensify added the External Added to denote the issue can be worked on by a contributor label Jul 6, 2023
@marcochavezf
Copy link
Contributor

Thanks for the review @fedirjh, assigning @alitoshmatov 🚀

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

📣 @fedirjh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Upwork job
Please accept the offer 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 📖

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

📣 @daveSeife 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Upwork job

@alitoshmatov
Copy link
Contributor

PR ready - #22672

@alitoshmatov
Copy link
Contributor

📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Looks like I didn't receive an offer in upwork, is there something I should do?

@daveSeife
Copy link

📣 @daveSeife 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Upwork job

Accepted the offer, Thanks

@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

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.

@trjExpensify
Copy link
Contributor

We've still got the regression period to wait out, but @fedirjh can you confirm there was a regression from the PR that fixed this?

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 17, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Unable to Upload PDF & JPEG files that contains a space in the file title [HOLD for payment 2023-07-24] [$1000] Unable to Upload PDF & JPEG files that contains a space in the file title Jul 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.41-3 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-24. 🎊

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 Jul 17, 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:

  • [@fedirjh] The PR that introduced the bug has been identified. Link to the PR:
  • [@fedirjh] 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:
  • [@fedirjh] 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:
  • [@fedirjh] Determine if we should create a regression test for this bug.
  • [@fedirjh] 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.
  • [@trjExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@fedirjh
Copy link
Contributor

fedirjh commented Jul 17, 2023

We've still got the regression period to wait out, but @fedirjh can you confirm there was a regression from the PR that fixed this?

@trjExpensify Yes there was a deploy blocker (regression) from the linked PR.

@trjExpensify
Copy link
Contributor

Cool, thanks! Let's get to the checklist when you're ready :)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 23, 2023
@trjExpensify
Copy link
Contributor

Bump on the checklist, @fedirjh!

In the meantime, confirming these are the payments due to send the offers:

  • No #urgency bonus to consider due to the regression.
  • $500 to @alitoshmatov for the fix, reduced by 50% because of the regression.
  • $500 to @fedirjh for C+, reduced by 50% because of the regression.
  • $250 to @daveSeife for the bug report

@fedirjh
Copy link
Contributor

fedirjh commented Jul 24, 2023

BugZero Checklist:

@trjExpensify
Copy link
Contributor

Cool, that works for me!

Settled up with everyone, closing. Thanks!

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests