Skip to content

[HOLD for payment 2022-01-11] Android - User prompted for permission after granting permission during download #6613

Closed

Description

@kbecciv

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:

Precondition: User declined access to files (see video below)

  1. Launch the app
  2. Log in with any account
  3. Select any user and tap on plus button
  4. Select attachment as txt. format
  5. Tap Send
  6. After attachment sent - tap on it
  7. Select Allow when asked if you want to give storage permission

Expected Result:

Attachment downloads without any error popup.

Actual Result:

A popup appears telling the user permissions have to be set, and then it disappears and the download happens successfully. We should not show the popup asking the user for permissions if they have just given us permission.

Screen_Recording_20211207-155717_Settings.mp4

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Android

**Version Number:1.1.18.0
**Reproducible in staging?:YES
**Reproducible in production?:YES
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Video
Issue reported by:
Slack conversation:

Job post https://www.upwork.com/jobs/~0158de43e8face62ee

View all open jobs on GitHub
Title:

Activity

  1. added
    AutoAssignerTriage
    Daily
    on Dec 7, 2021
  2. MelvinBot commented on Dec 7, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @lschurr (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

  3. MelvinBot commented on Dec 7, 2021

    @MelvinBot
    Contributor

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

  4. removed
    AutoAssignerTriage
    on Dec 7, 2021
  5. lschurr commented on Dec 7, 2021

    @lschurr
    Contributor

    I don't have an Android to triage with.. maybe @Jag96 can test this one?

  6. removed their assignment
    on Dec 7, 2021
  7. Jag96 commented on Dec 7, 2021

    @Jag96
    Contributor

    @kbecciv can you please add a screenshot or specify what specific Android permission is denied here? I'm not sure what permission you are referring to, so I am not sure how to reproduce. I attempted to reproduce with these steps:

    1. Disable the Storage permission under Settings->Apps and Permissions->New Expensify
      image
    2. Navigate to a chat and try to download a file, see the request to enable the storage permission
      image
    3. Hit Deny, confirm attachment isn't downloaded

    If I hit Allow instead of Deny, I see that the Access Needed message shows up initially, and then the download is successful, but only after I Allow the permission. That seems like an issue in itself, but I want to confirm the entire flow, including the manual steps you took to decline access to files.

  8. deleted a comment from abecciv on Dec 7, 2021
  9. kbecciv commented on Dec 7, 2021

    @kbecciv
    Author

    @Jag96 Please attached video with Expensify app permissions.

    Screen_Recording_20211207-155717_Settings.mp4
  10. Jag96 commented on Dec 7, 2021

    @Jag96
    Contributor

    @kbecciv ah perfect that makes more sense! It looks like in that video you chose Allow which then triggered the download, so the only issue here is that after the user selects Allow, we shouldn't show the Access Needed popup. I'll update the description and title and move this along.

  11. changed the title [-]Android - Attachment downloaded without permission access[/-] [+]Android - User prompted for permission after granting permission during download[/+] on Dec 7, 2021
  12. 17 remaining items

  13. parasharrajat commented on Dec 15, 2021

    @parasharrajat
    Member

    All good here.

    🎀 👀 🎀

  14. kevinksullivan commented on Dec 20, 2021

    @kevinksullivan
    Contributor

    Offer sent @aswin-s !

  15. aswin-s commented on Dec 20, 2021

    @aswin-s
    Contributor

    Offer accepted in upwork. @kevinksullivan

  16. thienlnam commented on Dec 24, 2021

    @thienlnam
    Contributor

    Just merged the PR: #6840
    Now waiting for production deploy and 7 day regression hold once that happens

  17. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Jan 4, 2022
  18. changed the title [-]Android - User prompted for permission after granting permission during download[/-] [+][HOLD for payment 2022-01-11] Android - User prompted for permission after granting permission during download[/+] on Jan 4, 2022
  19. botify commented on Jan 4, 2022

    @botify

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.24-8 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-01-11. 🎊

  20. mvtglobally commented on Jan 4, 2022

    @mvtglobally

    @thienlnam we are logging a new issue potentially related to this PR. I will post the link in a bit.
    Current issue not reproducible during KI retests. (First week)

  21. mvtglobally commented on Jan 4, 2022

    @mvtglobally
  22. aswin-s commented on Jan 4, 2022

    @aswin-s
    Contributor

    @mvtglobally Linked issue is unrelated to the current PR. I've posted the reason & fix for the bug in #7008

  23. mvtglobally commented on Jan 11, 2022

    @mvtglobally

    Issue not reproducible during KI retests. (First week)

  24. kevinksullivan commented on Jan 11, 2022

    @kevinksullivan
    Contributor

    Paid in upwork. Thanks @aswin-s !

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

Metadata

Metadata

Labels

Awaiting PaymentEngineeringExternalHelp WantedWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions