[BUG] Card sync does not work as expected
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- android, ios
- Domain
- distributed-systems, mobile-dev
Research direction
Start by reproducing the six-step Android, WebDAV, and iOS sequence described in the issue and inspect the resulting remote folder state. Use the stated updated_time and sync_time scenarios as the acceptance criteria: remote deletions must remain deleted after iOS sync, and conflicting local cards must be preserved under a conflicts folder.
Written by the indexing model from the issue text.
Description
Which app is your issue for
CardWallet
Version
1.12.2
What platform are you using?
iOS
OS Version
26.4.2
What happened?
iOS card sync overwrites remote state
STR:
- On Android, create a 2 cards in 1 folder.
- Add sync to webdav, then click "sync"
- On a fresh iOS device, add webdav and click "sync". Observe both cards being downloaded.
- Back on Android, delete one of the cards, click "sync"
- Verify that the cards are deleted by opening the sync folder in the webdav client and seeing that there is only one folder (= 1 card data) in the sync folder.
- Open iOS app, click "sync"
EXP: Remote changes from Android get pulled in, only 1 card remains
ACT: iOS state overwrites remote state, the card that was deleted gets re-uploaded to the webdav folder.
What I expect is that the priority (local vs remote state) get determined based on 2 timestamp fields: updated_time and sync_time, set on each of the cards both locally and on a remote.
Scenario A (Upload): Device A looks at a card and sees updated_time is newer than its last sync_time. It checks remote, and the remote version hasn't changed (remote sync_time = local sync_time). The Device A simply overwrites the file in the remote.
Scenario B (Download): Device B checks remote and finds a card where the remote updated_time is newer than Device B local sync_time. The Device B downloads it and updates its local database.
In case local updated_time is newer than local sync_time and remote sync_time is newer than local sync_time - a conflict is detected, remote changes are pulled and overwrite local changes, and also a new folder conflicts is created, and the local version of a conflicting card is moved there.
I hope it makes sense.
Code of Conduct
- I agree to follow this project's Code of Conduct
- Dominant language
- C++
- Stars
- 2.7k
- Forks
- 153
- Avg merge
- 9h 56m
- Merged PRs (30d)
- 121
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ossappscollective/OSS-DocumentScanner
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ossappscollective/OSS-DocumentScanner#739 ·
Maintainers usually reply within 1 day
-
[BUG] Disabling JPEG Compression doesn't actually disable it and exported PDFs still get compressedOpenbug done
Difficulty 3/5 1-2 days Newbie friendliness 48/100
ossappscollective/OSS-DocumentScanner#882 ·
Maintainers usually reply within 1 day
-
android enhancement ios wallet
Difficulty 5/5 Over a week Newbie friendliness 35/100
ossappscollective/OSS-DocumentScanner#865 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 52/100
ossappscollective/OSS-DocumentScanner#864 ·
Maintainers usually reply within 1 day
-
enhancement wallet
Difficulty 5/5 Over a week Newbie friendliness 35/100
ossappscollective/OSS-DocumentScanner#863 ·
Maintainers usually reply within 1 day
All issues in ossappscollective/OSS-DocumentScanner
Similar issues
-
new issue
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
llvm/llvm-project#245835 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 72/100
EchoTools/nevr-runtime#2823 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
triton-lang/triton#12945 ·
Maintainers usually reply within 1 day
-
Releases do not move the `latest` Docker tag: the branch `30.12` is taken for the latest release branchPossibly taken @alexey-milovidov claimed this today. Opencomp-ci-infrastructure unexpected behaviour
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ClickHouse/ClickHouse#134282 ·
Maintainers usually reply within 1 day