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

Opening PDF throws FileUrlExposed bug on Android Version 7.1.1 after API 27 migration. #2461

Closed
ChrisLace opened this issue Jun 25, 2018 · 5 comments
Assignees
Milestone

Comments

@ChrisLace
Copy link

I encounter this issue only on Android Samsung Tab E with Version 7.1.1.
In my app, I have hyperlink to open PDF file - When user opens the file, I will save the file and open it when ever it is needed. This is functionality working on iPhone and android devices android.targetSDKVersion : 23 but not without build hint. This throws FileUrlExposed issue. Please fix this issue as early as possible. Thanks

@shannah
Copy link
Collaborator

shannah commented Jun 26, 2018

Are you getting this with something like:

Display.getInstance().execute("https://example.com/my.pdf");

or only with

File myFile = downloadFileFromUrl("https://example.com/my.pdf");
Display.getInstance().execute(myFile.getAbsolutePath());

?

A small test case is always helpful and usually results in issues being fixed more quickly

@codenameone
Copy link
Collaborator

I missed the fact that he didn't include the link/code. See the error log (as an image) here: https://stackoverflow.com/questions/50942717/codename-one-pdf-not-opening-in-samsung-tab-samsung-sm-t377a and the code/conversation below

shannah added a commit that referenced this issue Jun 26, 2018
…g. Regression was introduced in 5d1824d .  In order to fix this, we had to move some some display properties regarding notification channels into build hints.  These properties haven't been documented yet.

This also includeds fix for Display.execute(filePath) in SDK 27.  #2461
Both of these fixes require forthcoming patches to the build server also.
@shannah shannah closed this as completed Jun 26, 2018
@ChrisLace
Copy link
Author

Shannah and Shai, When would these changes are available in the builds(after july 17th?) . Is there any workaround for PDF before that time. With SDK=23 build hint it works on newer OS devices but not working for older devices. If we release the build to App store will this issue exists for App store builds with build server patch. Please advise.

Another issue with SDK=23, first time when it gets to the page where the link to pdf present will display blank screen- I have to kill the app and reopen it to see the page. second time onwards I don't see that issue. Please advise.

@codenameone
Copy link
Collaborator

Updates go out every Friday

@ChrisLace
Copy link
Author

Great. Thank You.

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

No branches or pull requests

2 participants