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

Some EPUB files are not downloading. #3737

Open
MohitMaliFtechiz opened this issue Mar 8, 2024 · 0 comments · May be fixed by #3738
Open

Some EPUB files are not downloading. #3737

MohitMaliFtechiz opened this issue Mar 8, 2024 · 0 comments · May be fixed by #3738
Assignees
Labels
Milestone

Comments

@MohitMaliFtechiz
Copy link
Collaborator

Describe the bug
A few EPUB files are not downloading in storage.

Expected behavior
It should download all the EPUB files.

Steps to reproduce the behavior:

  1. Download Llyfrgell Prosiect Gutenberg - Llyfrau Cymraeg file.
  2. Open it in the reader.
  3. Open Y Gododin: A Poem of the Battle of Cattraeth article.
  4. Click on the download image. You will see the error.
  5. Now open another article e.g. Geiriadur Cymraeg a Saesneg Byr.
  6. Click on the download image, it will download the epub file.

Environment

  • Version of Kiwix Android: 3.9.1
  • Device: Samsung A20
  • OS version: Android 12

Logs

Couldn't save file
                                                                                                    java.io.FileNotFoundException: /storage/emulated/0/Download/org.kiwix/Y Gododin: A Poem of the Battle of Cattraeth.9842.epub: open failed: EPERM (Operation not permitted)
                                                                                                    	at libcore.io.IoBridge.open(IoBridge.java:492)
                                                                                                    	at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
                                                                                                    	at java.io.FileOutputStream.<init>(FileOutputStream.java:186)
                                                                                                    	at org.kiwix.kiwixmobile.core.utils.files.FileUtils.downloadFileFromUrl(FileUtils.kt:464)
                                                                                                    	at org.kiwix.kiwixmobile.core.main.CoreWebViewClient.handleEpubAndPdf(CoreWebViewClient.kt:89)
                                                                                                    	at org.kiwix.kiwixmobile.core.main.CoreWebViewClient.shouldOverrideUrlLoading(CoreWebViewClient.kt:52)
                                                                                                    	at org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(chromium-TrichromeWebViewGoogle.aab-stable-626106431:93)
                                                                                                    	at android.os.MessageQueue.nativePollOnce(Native Method)
                                                                                                    	at android.os.MessageQueue.next(MessageQueue.java:335)
                                                                                                    	at android.os.Looper.loop(Looper.java:206)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8653)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
                                                                                                    Caused by: android.system.ErrnoException: open failed: EPERM (Operation not permitted)
                                                                                                    	at libcore.io.Linux.open(Native Method)
                                                                                                    	at libcore.io.ForwardingOs.open(ForwardingOs.java:166)
                                                                                                    	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:254)
                                                                                                    	at libcore.io.ForwardingOs.open(ForwardingOs.java:166)
                                                                                                    	at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:8514)
                                                                                                    	at libcore.io.IoBridge.open(IoBridge.java:478)
EPubNotOpening.mp4
@MohitMaliFtechiz MohitMaliFtechiz added this to the 3.10.0 milestone Mar 8, 2024
@MohitMaliFtechiz MohitMaliFtechiz self-assigned this Mar 8, 2024
@MohitMaliFtechiz MohitMaliFtechiz linked a pull request Mar 8, 2024 that will close this issue
@kelson42 kelson42 modified the milestones: 3.10.0, 3.11.0 Mar 20, 2024
@kelson42 kelson42 modified the milestones: 3.11.0, 3.12.0 May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants