ossappscollective / ossappscollective/OSS-DocumentScanner

[BUG] Files with the same name overwrite each other in sync

Open
#588 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
2.4k
Forks
121
Avg merge
1d 58m
Merged PRs (30d)
17

Description

Which app is your issue for

Document Scanner

Version

v1.19.1 Build 140

What platform are you using?

Android

OS Version

Android 16

What happened?

When you create several documents the same day and they receive the same file name by your name template (= today's date), only the latest file gets exported with "Sync document PDFs" enabled or it overwrites the others.

So files should not be allowed to have the same name right in the app and get a number appended to their title when there's already file with the same name, and this check should also be what happens when the app tries to export to the selected folder, it shouldn't overwrite anything but automatically adjust the name. And when there's already today.pdf and today01.pdf, the next file has to be renamed to today02.pdf and so on.

Relevant log output

Code of Conduct
  • I agree to follow this project's Code of Conduct

Contributor guide

No contributing guide indexed for this repository

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

Start by tracing where the app generates document names and where the “Sync document PDFs” export writes to the selected folder. Check how existing same-name files are handled, including sequences such as today.pdf and today01.pdf. Done means same-day documents receive distinct names in the app and export no longer overwrites existing files.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.