owncloud / owncloud/android

[BUG] Cancelled uploads appear in file list as 0B

Open
#3,814 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Research Type:bug
Dominant language
Kotlin
Stars
4.2k
Forks
3.1k
Avg merge
1d 12h
Merged PRs (30d)
7

Description

  1. in oCIS, upload several big files (to have time to perform next steps). For this example, upload 5 files
  2. Cancel some of them, for example 3, in uploads view

Current: All 5 files appear in the target folder. The cancelled ones with 0B size
Expected: Cancelled files not appearing in the file list

Samsung A51, Android 12

Happens in:

  • oCIS
  • oC10

Maybe server involved... not sure. Propfind returns 0B files, but, they shouldn't be created from client side.

Upload is never cancelled actually. The PUT operation isn't aborted, so the HTTP request always returns 201 and it is considered a success. Therefore, a new file is created, sometimes with the whole size of the file and sometimes with 0 B.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Android by starting several large uploads and cancelling some from the uploads view. Trace the upload flow from cancellation through the PUT request and verify that cancelled files no longer appear in the target folder, including when the server reports a 0 B file.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.