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

Permission issue while reading images from device #13055

Closed
develric opened this issue Oct 5, 2020 · 1 comment
Closed

Permission issue while reading images from device #13055

develric opened this issue Oct 5, 2020 · 1 comment

Comments

@develric
Copy link
Contributor

develric commented Oct 5, 2020

While reviewing the #13009 PR I noticed the issue described below. Tracking here since it is something to further investigate.

Expected behavior

I expect to be able to add an image to a GB image block from device.

Actual behavior

At least with code from the above mentioned PR when trying to add an image from device to the GB image block in logcat I get the error 7103-7103/org.wordpress.android.beta E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /storage/emulated/0/Download/amazing-animal-beautiful-beautifull.jpg: open failed: EACCES (Permission denied) and the following error is shown in the UI

Steps to reproduce the behavior

  • In GB editor add an image block
  • Try to add an image from device
  • Notice you get the error as per above image and log
Tested on [Pixel 3 Emu], Android [API 29], WPAndroid [13009 PR]

NOTE: as suspected by @planarvoid it seems related to API 29 permissions management. With API 28 the issue is not present.

@thehenrybyrd
Copy link
Contributor

I'm no longer able to reproduced this in WP Android 20.6 on Samsung Galaxy S21. It seems the fix for API 29 sorted this out, or we've fixed this somewhere else along the way.
Closing for now, please reopen if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants