You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2022-01-11] Android - User prompted for permission after granting permission during download #6613
Awaiting PaymentAuto-added when associated PR is deployed to productionEngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsWeeklyKSv2
Precondition: User declined access to files (see video below)
Launch the app
Log in with any account
Select any user and tap on plus button
Select attachment as txt. format
Tap Send
After attachment sent - tap on it
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:
@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:
Disable the Storage permission under Settings->Apps and Permissions->New Expensify
Navigate to a chat and try to download a file, see the request to enable the storage permission
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.
@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.
changed the title [-]Android - Attachment downloaded without permission access[/-][+]Android - User prompted for permission after granting permission during download[/+]on Dec 7, 2021
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
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:
@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)
Awaiting PaymentAuto-added when associated PR is deployed to productionEngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsWeeklyKSv2
Activity
MelvinBot commentedon Dec 7, 2021
Triggered auto assignment to @lschurr (
AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.MelvinBot commentedon Dec 7, 2021
Triggered auto assignment to @Jag96 (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.lschurr commentedon Dec 7, 2021
I don't have an Android to triage with.. maybe @Jag96 can test this one?
Jag96 commentedon Dec 7, 2021
@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:
Deny, confirm attachment isn't downloadedIf I hit
Allowinstead ofDeny, I see that theAccess Neededmessage shows up initially, and then the download is successful, but only after IAllowthe 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.kbecciv commentedon Dec 7, 2021
@Jag96 Please attached video with Expensify app permissions.
Screen_Recording_20211207-155717_Settings.mp4
Jag96 commentedon Dec 7, 2021
@kbecciv ah perfect that makes more sense! It looks like in that video you chose
Allowwhich then triggered the download, so the only issue here is that after the user selectsAllow, we shouldn't show theAccess Neededpopup. I'll update the description and title and move this along.[-]Android - Attachment downloaded without permission access[/-][+]Android - User prompted for permission after granting permission during download[/+]17 remaining items
parasharrajat commentedon Dec 15, 2021
All good here.
🎀 👀 🎀
kevinksullivan commentedon Dec 20, 2021
Offer sent @aswin-s !
aswin-s commentedon Dec 20, 2021
Offer accepted in upwork. @kevinksullivan
thienlnam commentedon Dec 24, 2021
Just merged the PR: #6840
Now waiting for production deploy and 7 day regression hold once that happens
[-]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[/+]botify commentedon Jan 4, 2022
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. 🎊
mvtglobally commentedon Jan 4, 2022
@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)
mvtglobally commentedon Jan 4, 2022
#7008
aswin-s commentedon Jan 4, 2022
@mvtglobally Linked issue is unrelated to the current PR. I've posted the reason & fix for the bug in #7008
mvtglobally commentedon Jan 11, 2022
Issue not reproducible during KI retests. (First week)
kevinksullivan commentedon Jan 11, 2022
Paid in upwork. Thanks @aswin-s !