TeamAmaze / TeamAmaze/AmazeFileManager

Bug on paste-override feature

Open
#2,709 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-FileOperations Issue-Bug
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Describe the bug
Bug on copy/cut and paste-override feature. Keep original file size and data.

To Reproduce
Steps to reproduce the behavior:

  1. File to copy and paste have smaller size than original file size. They have same name.
  2. After overrided, file size keep in previous file size.
  3. Some extra (old) data would be remain, not removed.

Expected behavior
New file size need to be update. And old data would be delete.

Screenshots

Click to see

Data:
Data Original
Data New
File size:
Data Origonal Size
Data New Size
Paste process:
Pasting
Keep old file size after pasted and force-refresh:
Data Pasted Size
Bug found!
Data BUG

Smartphone:

  • Device: Samsung Gaplaxy A7 2018 (A750GN)
  • OS: Android 10
  • Rooted: No
  • Version: 3.6.1

Additional context
Ruin user data (text, image, video,...).
Advance user can fix this, but normal user can't.

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

No source file or test is named. Start by reproducing the copy/paste overwrite on Android 10 with Amaze File Manager 3.6.1, using a smaller same-name file, then trace the paste-override flow. Done means the destination size matches the replacement and no trailing data from the original remains.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.