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-02-13] [HOLD for payment 2023-02-10] [$1000] Profile : Infinite loading spinner appears choosing images with file names has space or special character #14757

Closed
6 tasks
kavimuru opened this issue Feb 2, 2023 · 37 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 Feb 2, 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 settings > Profile
  2. Upload any image which has space or having brackets () in the image file name

Expected Result:

Able to upload without any issue

Actual Result:

Infinite loading spinner appears

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: 1.2.64-2
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:

https://user-images.githubusercontent.com/43996225/216393900-86df9390-229e-4ecd-aa56-826d8fff2e32.mov
Sa mpl e GIFImage_350kbmb (1)
https://user-images.githubusercontent.com/43996225/216393999-0ab8f66c-e86e-47d9-8022-dcf6b87c4393.mp4

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011dbd8a1da41596b4
  • Upwork Job ID: 1621583779104563200
  • Last Price Increase: 2023-02-03
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Feb 2, 2023

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

@melvin-bot melvin-bot bot locked and limited conversation to collaborators Feb 2, 2023
@kavimuru kavimuru added the DeployBlockerCash This issue or pull request should block deployment label Feb 2, 2023
@kavimuru kavimuru changed the title Infinite loading spinner appears choosing images with file names has space or special character Profile Infinite loading spinner appears choosing images with file names has space or special character Feb 2, 2023
@kavimuru kavimuru changed the title Profile Infinite loading spinner appears choosing images with file names has space or special character Profile : Infinite loading spinner appears choosing images with file names has space or special character Feb 2, 2023
@thienlnam thienlnam added Engineering External Added to denote the issue can be worked on by a contributor labels Feb 3, 2023
@melvin-bot melvin-bot bot unlocked this conversation Feb 3, 2023
@melvin-bot melvin-bot bot changed the title Profile : Infinite loading spinner appears choosing images with file names has space or special character [$1000] Profile : Infinite loading spinner appears choosing images with file names has space or special character Feb 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Feb 3, 2023

Job added to Upwork: https://www.upwork.com/jobs/~011dbd8a1da41596b4

@melvin-bot
Copy link

melvin-bot bot commented Feb 3, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Feb 3, 2023

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

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

melvin-bot bot commented Feb 3, 2023

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

@Pujan92
Copy link
Contributor

Pujan92 commented Feb 3, 2023

Adding same response which I have added here #14266 (comment)

Proposal

This PR seems to raise a regression where we won't able to reach out to Avatar Crop part and the infinite loader will remain on the screen after cleaning the filename.
Reason is uri will be undefined as the file object is overwritten here.

file.uri = URL.createObjectURL(file);
if (file.name !== cleanName) {
file = new File([file], cleanName);
}

Screen.Recording.2023-02-03.at.6.39.27.PM.mp4

To solve we need to make an order change that confirms the uri is available which is mandatory to proceed.

diff --git a/src/components/AttachmentPicker/index.js b/src/components/AttachmentPicker/index.js
index dddceb7cf7..dc6573e02c 100644
--- a/src/components/AttachmentPicker/index.js
+++ b/src/components/AttachmentPicker/index.js
@@ -36,10 +36,10 @@ class AttachmentPicker extends React.Component {
 
                         if (file) {
                             const cleanName = FileUtils.cleanFileName(file.name);
-                            file.uri = URL.createObjectURL(file);
                             if (file.name !== cleanName) {
                                 file = new File([file], cleanName);
                             }
+                            file.uri = URL.createObjectURL(file);
                             this.onPicked(file);
Screen.Recording.2023-02-03.at.6.39.48.PM.mov

@dhairyasenjaliya
Copy link
Contributor

I think this is regression from #14266 which is still in regression period should be handled there

@thesahindia
Copy link
Member

@MonilBhavsar the proposal looks good to me

C+ reviewed 🎀👀🎀

@thienlnam
Copy link
Contributor

Monil is offline, so I will take over on this issue

@thienlnam thienlnam assigned Pujan92 and thienlnam and unassigned MonilBhavsar Feb 3, 2023
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 3, 2023
@mountiny
Copy link
Contributor

mountiny commented Feb 8, 2023

Keeping this open to pay out cc @mateocole

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Feb 10, 2023
@mateocole
Copy link

Still need C+ and issue reported to apply to the upwork link!

https://www.upwork.com/jobs/~011dbd8a1da41596b4

@melvin-bot melvin-bot bot removed the Overdue label Feb 13, 2023
@gadhiyamanan
Copy link
Contributor

@mateocole applied

@Pujan92
Copy link
Contributor

Pujan92 commented Feb 13, 2023

Regression Test Proposal

  • Go to the profile page
  • Choose upload photo
  • Select any pic with special char in file name
  • Verify that it proceeds and loading spinner won't turn out to be infinite

@thesahindia
Copy link
Member

Still need C+ and issue reported to apply to the upwork link!

https://www.upwork.com/jobs/~011dbd8a1da41596b4

It's not available anymore.

@thesahindia
Copy link
Member

Regression Test Proposal

  • Go to the profile page
  • Choose upload photo
  • Select any pic with special char in file name
  • Verify that it proceeds and loading spinner won't turn out to be infinite

It looks good to me. I think we should also add an example in the third steps

"Select any pic with special char in file name e.g. test(1).png"

@mateocole
Copy link

mateocole commented Feb 14, 2023

@thesahindia
Copy link
Member

try here https://www.upwork.com/jobs/~019299c196286e1e4a @thesahindia

Thanks! Applied

@mateocole
Copy link

Ok thx!

@gadhiyamanan
Copy link
Contributor

@mateocole reporting bonus is pending

@Pujan92
Copy link
Contributor

Pujan92 commented Feb 16, 2023

@mateocole reporting bonus is pending

@mateocole same(payment pending) for me.

@thesahindia
Copy link
Member

thesahindia commented Feb 17, 2023

Also the 50% bonus is due @mateocole!

[@mateocole] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

I think this action is also pending.

Regression Test steps -

  1. Go to the profile page
  2. Choose upload photo
  3. Select any pic with special char in file name e.g. test(1).png
  4. Verify that it proceeds and loading spinner won't turn out to be infinite

@Pujan92
Copy link
Contributor

Pujan92 commented Feb 21, 2023

@mateocole quick bump!

@gadhiyamanan
Copy link
Contributor

@thienlnam can you please reopen the issue as payment is pending here
cc: @mateocole

@MelvinBot
Copy link

📣 @gadhiyamanan! 📣

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>

@gadhiyamanan
Copy link
Contributor

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~01b6fd34f946454a68

@MelvinBot
Copy link

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

@thienlnam
Copy link
Contributor

Pinged Matt to take care of payment on this issue!

@mateocole
Copy link

Okay, apologies with the multiple jobs on this. All paid and bonuses paid.

@thienlnam thienlnam reopened this Feb 22, 2023
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

10 participants