Automattic / Automattic/pocket-casts-android

Plus: Download of Custom File Automatically Fails If Upload from Web App Hasn’t Completed

Open
#608 0 comments 0 reactions 0 assignees View on GitHub
[Area] User Files [Priority] Low [Type] Bug
Dominant language
Kotlin
Stars
2.8k
Forks
308
Avg merge
1d 13h
Merged PRs (30d)
143

Description

### Description

With "Auto download from cloud" enabled for custom files, the download in the Android app automatically fails if the upload from the web or desktop app hasn't completed yet.

### Step-by-step reproduction instructions

1. On the Android app, enable "Auto download from cloud" in Profile > Files
2. Start uploading a file in https://play.pocketcasts.com/uploaded-files
3. Refresh Files in the Android app
4. The Android app will detect the new file and automatically try to download it, causing it to fail

### Did you search for existing bug reports?

- [X] I have searched for existing bug reports.

### Device, Operating system, and Pocket Casts app version

Reported in #5732060-zen:

- App version : 7.26 (9049)
- Phone: samsung - r0q - SM-S901U1 - r0q
- Android version: 13 SDK 33

> [...] I'm presuming the android app thinks there's a new file and automatically tries to download the file when it's not ready yet and generates a `Download Failed` error. I'll have to manually download the files again to resolve the issue. [...]

Replicated with

- App version : 7.27-rc-2 (9051)
- Phone: samsung - Galaxy Note20 Ultra 5G - SM-N9860 - c2q
- Android version: 12 SDK 31

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. First reproduce the failure with Android auto-download enabled while a custom file upload is still running, then trace the app's custom-file refresh and download flow to see how upload readiness is handled. Done means an in-progress upload is not treated as a downloadable file, while completed files still download automatically.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.