Skip to content

[BUG] Removed files in failed uploads #4653

Closed

Description

@jesmrec

Steps to reproduce

  1. Upload a big file (so, you can perform actions while it is being uploaded)
  2. Make the upload fail (token removed, for example)
  3. Recover the failure cause to make the upload finish
  4. Retry the failed upload

Actual behaviour

Upload finishes, but source file is removed

Expected behaviour

Upload finishes and source file stays in device

Activity

  1. added this to the 4.6 - Current milestone on Jul 28, 2025
  2. added
    p2-high
    on Jul 28, 2025
  3. self-assigned this
    on Jul 29, 2025
  4. jesmrec commented on Jul 30, 2025

    @jesmrec
    MemberAuthor

    As a proposal, this will be the sanity test over the feature

    Checking:

    • All kind of uploads
    • oC10 & oCIS
    • Success in 1st attempt
    • Fail in 1st attempt and success in retry
    • Manual & automatic retries
    • Both behaviours (keep, remove) in case of automatic uploads
    • Final status of local source file and /tmp folder

    Uploads

    Manual retry

    Server down, credentials revoked

    Scenario Outcome Local source /tmp oC10 oCIS Comment
    Manual 1st att ✅ Keep file clean
    Manual 1st att ❌ Keep file file
    Manual 2nd att ✅ Keep file clean
    Photo 1st att ✅ Remove file clean /cache in storage as local and /tmp
    Photo 1st att ❌ Keep file file /cache in storage as local and /tmp
    Photo 2nd att ✅ Remove file clean /cache in storage as local and /tmp
    Auto Keep 1st att ✅ Keep file clean
    Auto Keep 1st att ❌ Keep file file
    Auto Keep 2nd att ✅ Keep file clean
    Auto Rem. 1st att ✅ Remove file clean
    Auto Rem. 1st att ❌ Keep file file
    Auto Rem. 2nd att ✅ Remove file clean
    External 1st att ✅ Keep file clean
    External 1st att ❌ Keep file file
    External 2nd att ✅ Keep file clean

    Automatic retry

    Connectivity loss

    Scenario Outcome Local source /tmp oC10 oCIS Comment
    Manual 1st att ✅ Keep file clean
    Manual 1st att ❌ Keep file file
    Manual 2nd att ✅ Keep file clean
    Photo 1st att ✅ Remove file clean /cache in storage as local and /tmp
    Photo 1st att ❌ Keep file file /cache in storage as local and /tmp
    Photo 2nd att ✅ Remove file clean /cache in storage as local and /tmp
    Auto Keep 1st att ✅ Keep file clean
    Auto Keep 1st att ❌ Keep file file
    Auto Keep 2nd att ✅ Keep file clean
    Auto Rem. 1st att ✅ Remove file clean
    Auto Rem. 1st att ❌ Keep file file
    Auto Rem. 2nd att ✅ Remove file clean
    External 1st att ✅ Keep file clean
    External 1st att ❌ Keep file file
    External 2nd att ✅ Keep file clean

    @joragua do you miss something else?

  5. joragua commented on Jul 30, 2025

    @joragua
    Member

    Nope, the test plan covers all cases for the uploads feature (unless I'm missing something) 😄

  6. linked a pull request that will close this issue[FIX] Removed files in failed uploads #4657on Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Estimation - 3 (M)Type:bugUploadsp2-high

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions