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] Android - Chat - In offline mode, protected PDF file shows "Failed to load PDF file" messages. #16694

Closed
1 of 6 tasks
kbecciv opened this issue Mar 29, 2023 · 49 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@kbecciv
Copy link

kbecciv commented Mar 29, 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. Launch the App
  2. Login with any account
  3. Navigate to any conversation
  4. Send 2 password protected PDF
  5. Tap on it
  6. Tap "Enter the password" > enter password
  7. Close protected PDF file
  8. Dissable the internet connection
  9. Tap on the protected PDF submitted file

Expected Result:

In offline mode, protected PDF file should NOT show the"Failed to load PDF file" message.

Actual Result:

In offline mode, protected PDF file shows Failed to load PDF file" messages.

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

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Bug5997620_Screen_Recording_20230329_202256_New_Expensify.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c405d2bc500b7f64
  • Upwork Job ID: 1795516458922020864
  • Last Price Increase: 2024-06-11
Issue OwnerCurrent Issue Owner: @eh2077
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 29, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

@trjExpensify
Copy link
Contributor

Can we even load this offline at this point? I have the same question as I did here re: image caching being the precursor to then supporting caching of other file types.

CC: @thomas-coldwell @Beamanator @marcaaron @aimane-chnaif

@melvin-bot melvin-bot bot added the Overdue label Apr 3, 2023
@MelvinBot
Copy link

@trjExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@MelvinBot
Copy link

@trjExpensify Eep! 4 days overdue now. Issues have feelings too...

@MelvinBot
Copy link

@trjExpensify Still overdue 6 days?! Let's take care of this!

@trjExpensify
Copy link
Contributor

Hey Melv, I'm back!

Didn't get an answer on this. @thomas-coldwell @Beamanator @marcaaron @aimane-chnaif what do you guys think? I believe this is held on us figuring out image caching first and then expanding that solution to other file types.

@melvin-bot melvin-bot bot removed the Overdue label Apr 11, 2023
@Beamanator
Copy link
Contributor

Aah shucks sorry for the late response!

I think this is an interesting case actually b/c technically the only image caching we've discussed so far for PDFs is the PDF "Preview" - and since this is a protected PDF, mayyyybe we don't even want to cache such previews?

That being said, I do think we still need to wait on the full image caching solution b/c I think it will help with a lot of related caching discussions

@trjExpensify
Copy link
Contributor

and since this is a protected PDF, mayyyybe we don't even want to cache such previews?

It would show some kind of "locked" preview though wouldn't it? Instead of an error message or a grey screen etc?

@MelvinBot
Copy link

@trjExpensify 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!

@trjExpensify trjExpensify changed the title Android - Chat - In offline mode, protected PDF file shows "Failed to load PDF file" messages. [Hold #12603] Android - Chat - In offline mode, protected PDF file shows "Failed to load PDF file" messages. Apr 13, 2023
@trjExpensify trjExpensify added Monthly KSv2 and removed Daily KSv2 labels Apr 13, 2023
@trjExpensify
Copy link
Contributor

That being said, I do think we still need to wait on the full image caching solution b/c I think it will help with a lot of related caching discussions

Ah yeah and on this, I agree. Adding a hold for caching.

@trjExpensify
Copy link
Contributor

Held on image caching to come first, which is held on the server migration project.

@melvin-bot melvin-bot bot removed the Overdue label May 15, 2023
@melvin-bot melvin-bot bot added the Overdue label Jun 15, 2023
@trjExpensify
Copy link
Contributor

^^ same as above melv.

@melvin-bot melvin-bot bot removed the Overdue label Jun 20, 2023
@melvin-bot melvin-bot bot added the Overdue label Jul 21, 2023
@trjExpensify
Copy link
Contributor

Same. Held on image caching to come first, which is held on the server migration project.

@melvin-bot melvin-bot bot removed the Overdue label Jul 24, 2023
@trjExpensify
Copy link
Contributor

What do you mean, sorry? #39290 is still reproducible?

@melvin-bot melvin-bot bot removed the Overdue label May 22, 2024
@mollfpr
Copy link
Contributor

mollfpr commented May 28, 2024

@trjExpensify This issue is not fixed by the PR #39290.

@trjExpensify
Copy link
Contributor

Okay, so we need someone to work on a solution for this then.

@trjExpensify trjExpensify added Help Wanted Apply this label when an issue is open to proposals by contributors External Added to denote the issue can be worked on by a contributor labels May 28, 2024
@melvin-bot melvin-bot bot changed the title Android - Chat - In offline mode, protected PDF file shows "Failed to load PDF file" messages. [$250] Android - Chat - In offline mode, protected PDF file shows "Failed to load PDF file" messages. May 28, 2024
Copy link

melvin-bot bot commented May 28, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01c405d2bc500b7f64

Copy link

melvin-bot bot commented May 28, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 28, 2024
@eh2077
Copy link
Contributor

eh2077 commented May 30, 2024

Posted on slack to attract proposals. This quite an old issue so it's not easy to be found by contributors.

cc @trjExpensify

@b4s36t4
Copy link
Contributor

b4s36t4 commented May 30, 2024

I'm not able to repro this, any specific steps need to follow?

@eh2077
Copy link
Contributor

eh2077 commented Jun 3, 2024

Waiting on proposals

@trjExpensify
Copy link
Contributor

  • Launch the App
  • Login with any account
  • Navigate to any conversation
  • Send 2 password protected PDF
  • Tap on it
  • Tap "Enter the password" > enter password
  • Close protected PDF file
  • Dissable the internet connection
  • Tap on the protected PDF submitted file

Interesting! @eh2077 are you still able to reproduce on Android, and if so, can you share the steps with @b4s36t4?

@eh2077
Copy link
Contributor

eh2077 commented Jun 4, 2024

I'll check this tmr

Copy link

melvin-bot bot commented Jun 4, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@eh2077
Copy link
Contributor

eh2077 commented Jun 5, 2024

@trjExpensify I can't reproduce it on the emulator.

@mollfpr Are you still able to reproduce it?

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@trjExpensify
Copy link
Contributor

Sounds promising. @mollfpr can retry and then we can close if he can't either. I don't have an Android device.

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@melvin-bot melvin-bot bot added the Overdue label Jun 10, 2024
@eh2077
Copy link
Contributor

eh2077 commented Jun 10, 2024

Not overdue, issue is not reproducible

@melvin-bot melvin-bot bot removed the Overdue label Jun 10, 2024
Copy link

melvin-bot bot commented Jun 11, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@eh2077
Copy link
Contributor

eh2077 commented Jun 11, 2024

@trjExpensify I managed to test on an Android device and it's not reproducible

w_756d736983559b7332f27ba1eba4cb8675c108f6-2024-06-11.16_22_19.372.mp4

@eh2077
Copy link
Contributor

eh2077 commented Jun 11, 2024

So, I think we can close this. Do you agree?

@trjExpensify
Copy link
Contributor

Yep, let's close. Sounds good!

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 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
No open projects
Archived in project
Development

No branches or pull requests

8 participants