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 2022-10-20] [$250] Android/IOS - Attachment - PDF file is not shown in Preview Page, only 0.00% is shown #10442

Closed
kbecciv opened this issue Aug 18, 2022 · 51 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 Reviewing Has a PR in review

Comments

@kbecciv
Copy link

kbecciv commented Aug 18, 2022

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. Launch the app and log in with account
  2. Select any user
  3. Tab on plus button
  4. Select Add attachment
  5. Select Chose from Documents
  6. Select any PDF file and tap Send
  7. Open the PDF file again

Expected Result:

PDF file is shown in Preview Page

Actual Result:

PDF file is not shown in Preview Page

Workaround:

Unknkown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.88.14

Reproducible in staging?: Yes

Reproducible in production?: No

Email or phone of affected tester (no customers): any accounts

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Upwork job URL: https://www.upwork.com/jobs/~01eda72888fdccc636

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Aug 18, 2022
@OSBotify
Copy link
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.

@melvin-bot
Copy link

melvin-bot bot commented Aug 18, 2022

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

@kbecciv kbecciv changed the title Android - Attachment - PDF file is not shown in Preview Page Android - Attachment - PDF file is not shown in Preview Page, only 0.00% is shown Aug 18, 2022
@techievivek
Copy link
Contributor

@kbecciv I am unable to reproduce this either locally or on staging. Is there a specific file size or any constraint that gets applied here because uploading a small-size pdf file doesn't help us reproduce this?
Screenshot 2022-08-18 at 10 46 24 PM

@kbecciv
Copy link
Author

kbecciv commented Aug 18, 2022

@techievivek Checking with Team, will update you shortly

@kbecciv
Copy link
Author

kbecciv commented Aug 18, 2022

@techievivek This issue is reproduced in Android app, please attached PDF file.
I am unable to reproduce this issue in Web/Chrome.

change.pdf

Screen_Recording_20220818-133526_Files.mp4

@kbecciv
Copy link
Author

kbecciv commented Aug 18, 2022

@techievivek Attaching IOS behavior for this issue

Image.from.iOS.50.MP4

@kbecciv kbecciv changed the title Android - Attachment - PDF file is not shown in Preview Page, only 0.00% is shown Android/IOS - Attachment - PDF file is not shown in Preview Page, only 0.00% is shown Aug 18, 2022
@kakajann
Copy link
Contributor

kakajann commented Aug 18, 2022

Proposal

The error is:

Error: ReactNativeBlobUtil request error: java.lang.IllegalStateException: Use of own trust manager but none definedjava.lang.IllegalStateException: Use of own trust manager but none defined

simply adding this prop trustAllCerts={false} will fix this issue.

<PDF
activityIndicator={<FullScreenLoadingIndicator />}
source={{uri: props.sourceURL}}
style={[
styles.imageModalPDF,
StyleUtils.getWidthAndHeightStyle(props.windowWidth, props.windowHeight),
]}

Before After
Screen Shot 2022-08-18 at 11 33 03 PM Screen Shot 2022-08-18 at 11 30 12 PM

@melvin-bot melvin-bot bot added the Daily KSv2 label Aug 18, 2022
@techievivek techievivek added the External Added to denote the issue can be worked on by a contributor label Aug 19, 2022
@melvin-bot
Copy link

melvin-bot bot commented Aug 19, 2022

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

@techievivek
Copy link
Contributor

@kevinksullivan We already discussed about this issue here so we will be just moving forward with the @kakajann

@techievivek
Copy link
Contributor

Not overdue, have posted it in slack for any contributor manager to have a look.

@melvin-bot melvin-bot bot removed the Overdue label Aug 22, 2022
@kakajann
Copy link
Contributor

Am I eligible for contributor payment?

@techievivek
Copy link
Contributor

Yes, @kakajann you are. Let's wait till Monday and then I will bring this to team.

@techievivek
Copy link
Contributor

Have posted in #product for some thoughts on the above point.

@melvin-bot melvin-bot bot removed the Overdue label Sep 26, 2022
@michaelhaxhiu
Copy link
Contributor

michaelhaxhiu commented Sep 26, 2022

Note, vivek posted in an internal expensify slack channel here (#product) and we'll follow up as soon as we have next steps.

@Santhosh-Sellavel
Copy link
Collaborator

Cool thanks!

@techievivek
Copy link
Contributor

Hi @michaelhaxhiu we have come to an agreement that we would like to use an activity indicator rather than a percentage-based approach so I think we are good to go with the proposal.

@Santhosh-Sellavel
Copy link
Collaborator

Good then, thanks!

@melvin-bot melvin-bot bot added the Overdue label Oct 3, 2022
@techievivek techievivek added the Reviewing Has a PR in review label Oct 3, 2022
@melvin-bot melvin-bot bot removed the Overdue label Oct 3, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 2022

@kakajann, @michaelhaxhiu, @techievivek, @Santhosh-Sellavel Whoops! This issue is 2 days overdue. Let's get this updated quick!

@Santhosh-Sellavel
Copy link
Collaborator

PR is merged waiting for deployment!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Oct 13, 2022
@melvin-bot melvin-bot bot changed the title [$250] Android/IOS - Attachment - PDF file is not shown in Preview Page, only 0.00% is shown [HOLD for payment 2022-10-20] [$250] Android/IOS - Attachment - PDF file is not shown in Preview Page, only 0.00% is shown Oct 13, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 13, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.13-5 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 2022-10-20. 🎊

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 19, 2022
@michaelhaxhiu
Copy link
Contributor

Excellent, thanks for the check @mvtglobally. I'll prep payment.

  1. @kakajann is already hired via https://www.upwork.com/jobs/~01eda72888fdccc636, but that job link expired and so I'll make a new one for @Santhosh-Sellavel to apply to below:

  2. @Santhosh-Sellavel can you apply to this new job - https://www.upwork.com/jobs/~014caa50546908ac6a

@puneetlath puneetlath added the Bug Something is broken. Auto assigns a BugZero manager. label Oct 19, 2022
@michaelhaxhiu
Copy link
Contributor

michaelhaxhiu commented Oct 20, 2022

1/2 paid... just need to get santhosh now :)

@kakajann
Copy link
Contributor

I solved 2 issues btw

@michaelhaxhiu
Copy link
Contributor

@kakajann can you point me to both for clarity? If this is true, you can apply to the 2nd job link I made for Santhosh (above). But let's first get on the same page before proceeding.

@kakajann
Copy link
Contributor

@michaelhaxhiu here's context #10442 (comment)

@kakajann
Copy link
Contributor

#10465

#11200

@michaelhaxhiu
Copy link
Contributor

Thanks for sharing. In this case, I agree and buddy checked with @techievivek in a DM.

I think you are due $500 ($250 for each independent fix) and @Santhosh-Sellavel is due $250 for C+ reviewing one of those fixes (the other fix was reviewed by internal expensify staff).

@michaelhaxhiu
Copy link
Contributor

All paid.

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 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests