Cannot download files on Android 11 #291

Closed
opened 2020-09-29 17:14:50 +02:00 by Amab · 0 comments
Amab commented 2020-09-29 17:14:50 +02:00 (Migrated from github.com)

Describe the bug
Files cannot be downloaded on Android 11.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Files -> Documents
  2. Navigate to a file
  3. Click on the file to start downloading it
  4. The app returns to main menu and the file is not downloaded

Expected behavior
The file is downloaded.

Screenshots
N/A

Smartphone (please complete the following information):

  • Device: Google Pixel 2 XL
  • OS: Android
  • Version 11

Additional context

2020-09-29 17:05:04.599 23986-24095/es.ugr.swad.swadroid E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 Process: es.ugr.swad.swadroid, PID: 23986 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$4.done(AsyncTask.java:415) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383) at java.util.concurrent.FutureTask.setException(FutureTask.java:252) at java.util.concurrent.FutureTask.run(FutureTask.java:271) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923) Caused by: java.lang.IllegalStateException: Not one of standard directories: SWADroid at android.os.Parcel.createExceptionOrNull(Parcel.java:2381) at android.os.Parcel.createException(Parcel.java:2357) at android.os.Parcel.readException(Parcel.java:2340) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142) at android.content.ContentProviderProxy.call(ContentProviderNative.java:732) at android.content.ContentProviderClient.call(ContentProviderClient.java:603) at android.content.ContentProviderClient.call(ContentProviderClient.java:591) at android.app.DownloadManager$Request.setDestinationInExternalPublicDir(DownloadManager.java:576) at es.ugr.swad.swadroid.modules.downloads.DownloadFactory.downloadFile(DownloadFactory.java:85) at es.ugr.swad.swadroid.modules.downloads.FileDownloaderAsyncTask.doInBackground(FileDownloaderAsyncTask.java:70) at es.ugr.swad.swadroid.modules.downloads.FileDownloaderAsyncTask.doInBackground(FileDownloaderAsyncTask.java:42) at android.os.AsyncTask$3.call(AsyncTask.java:394) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923)

**Describe the bug** Files cannot be downloaded on Android 11. **To Reproduce** Steps to reproduce the behavior: 1. Go to Files -> Documents 2. Navigate to a file 3. Click on the file to start downloading it 4. The app returns to main menu and the file is not downloaded **Expected behavior** The file is downloaded. **Screenshots** N/A **Smartphone (please complete the following information):** - Device: Google Pixel 2 XL - OS: Android - Version 11 **Additional context** `2020-09-29 17:05:04.599 23986-24095/es.ugr.swad.swadroid E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 Process: es.ugr.swad.swadroid, PID: 23986 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$4.done(AsyncTask.java:415) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383) at java.util.concurrent.FutureTask.setException(FutureTask.java:252) at java.util.concurrent.FutureTask.run(FutureTask.java:271) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923) Caused by: java.lang.IllegalStateException: Not one of standard directories: SWADroid at android.os.Parcel.createExceptionOrNull(Parcel.java:2381) at android.os.Parcel.createException(Parcel.java:2357) at android.os.Parcel.readException(Parcel.java:2340) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142) at android.content.ContentProviderProxy.call(ContentProviderNative.java:732) at android.content.ContentProviderClient.call(ContentProviderClient.java:603) at android.content.ContentProviderClient.call(ContentProviderClient.java:591) at android.app.DownloadManager$Request.setDestinationInExternalPublicDir(DownloadManager.java:576) at es.ugr.swad.swadroid.modules.downloads.DownloadFactory.downloadFile(DownloadFactory.java:85) at es.ugr.swad.swadroid.modules.downloads.FileDownloaderAsyncTask.doInBackground(FileDownloaderAsyncTask.java:70) at es.ugr.swad.swadroid.modules.downloads.FileDownloaderAsyncTask.doInBackground(FileDownloaderAsyncTask.java:42) at android.os.AsyncTask$3.call(AsyncTask.java:394) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923) `
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Marown/SWADroid#291
No description provided.