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

Image and camera buttons do nothing if permissions are denied #3976

Open
harshbisle opened this issue Mar 16, 2020 · 8 comments
Open

Image and camera buttons do nothing if permissions are denied #3976

harshbisle opened this issue Mar 16, 2020 · 8 comments
Labels
a-compose/send Compose box, autocomplete, camera/upload, outbox, sending a-onboarding Everything you would do when first joining a realm.

Comments

@harshbisle
Copy link

harshbisle commented Mar 16, 2020

Screenshot_20200316-122023

@drigio
Copy link

drigio commented Mar 16, 2020

Hello @harshbisle It seems to work on my device. Can you recheck it once by giving the appropriate permissions? Also what version of zulip are you using? The stable from playstore or your own build from the repo?

@harshbisle
Copy link
Author

@drigio I'm using zulip beta from playstore

@harshbisle
Copy link
Author

@drigio files and the profile buttons do work whereas image and camera buttons are not working

@harshbisle
Copy link
Author

Version:
Screenshot_20200316-134150~2

@harshbisle
Copy link
Author

@drigio It works now. I reinstalled the
App and gave permissions.

@gnprice gnprice added a-compose/send Compose box, autocomplete, camera/upload, outbox, sending a-onboarding Everything you would do when first joining a realm. labels Mar 27, 2020
@gnprice
Copy link
Member

gnprice commented Mar 27, 2020

It sounds like we may not be handling well the case where you try to use the camera or image gallery but we don't have permissions. (E.g. because you've previously said no to them.) We should show some kind of meaningful error here, and ideally help the user go grant permissions after all if that's what they want to do.

This is reminiscent of #3814, which is for iOS.

If someone wants to test this flow (reinstall the app, try using images or camera, deny permissions, then try using a second time) and document clearly what happens, that'd be a useful contribution.

@drigio
Copy link

drigio commented Mar 27, 2020

@gnprice I checked the flow. On denying permissions for camera and storage and then again trying it, I get no reaction (should be some prompt to ask user again for permission) or else a message stating that the permission had been denied and will need to be given prior.
Hmph, the next weird thing that I noticed was even on denying permission to storage, I was able to send an image. I think this shouldn't have happened. This can be seen from the gif (its a tad bit big).
The camera and image buttons have no reaction, however clicking on file icon opens up file manager. Is this expected in any way? If not I think this is a major bug.

Can someone reproduce this with the above flow, so that we can confirm.

Additional Details :
Android Pie
Zulip 26.23.146 as well as
Zulip from upstream
Confirmed that this behavior is not reproducible with other apps. Other apps can't access storage.

@rk-for-zulip
Copy link
Contributor

rk-for-zulip commented Mar 28, 2020

Another related issue may be #3576.

If someone wants to test this flow (reinstall the app, try using images or camera, deny permissions, then try using a second time) and document clearly what happens, that'd be a useful contribution.

I've just tested a related flow:

  • Click the camera or image button for the first time. Allow permissions.
  • Leave Zulip, and go into the Android Settings app. Revoke those permissions for Zulip.
  • Go back into Zulip and try pressing the image and camera buttons.

... whereupon there should be some reaction, but nothing happens.

Between this and @drigio's comment, above, reopening as confirmed.

@rk-for-zulip rk-for-zulip reopened this Mar 28, 2020
@rk-for-zulip rk-for-zulip changed the title Image and camera buttons are not working Image and camera buttons do nothing if permissions are denied Mar 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-compose/send Compose box, autocomplete, camera/upload, outbox, sending a-onboarding Everything you would do when first joining a realm.
Projects
None yet
Development

No branches or pull requests

4 participants