⚠️ Before posting ⚠️
Steps to reproduce
- Create a folder
- Upload a file (e.g. a text file)
- Go offline (e.g. airplane mode)
- Change the file (e.g. add some characters)
- Upload a second time the file
- Go online
- A conflict message is shown
- Choose to keep BOTH files
- The online file is overwritten by the new uploaded file (only one file present in the folder at the end)
Expected behaviour
The folder should contain two files: the remote one and the newly uploaded, renamed (as it happens if following the same steps without ever going offline).
Actual behaviour
The online file is overwritten by the new uploaded file (only one file present in the folder at the end)
Android version
17
Device brand and model
Emulator on Android Studio
Stock or custom OS?
Stock
Nextcloud android app version
35.0.0 RC1
Nextcloud server version
Nextcloud Hub 26 Spring (36.0.0 dev)
Using a reverse proxy?
No
Android logs
No response
Server error logs
Additional information
I think it's related to ConflictsResolveActivity having its own flow for offline uploads (see showOfflineOperationConflictDialog()) and passing Decision.KEEP_BOTH_FOLDER instead of KEEP_BOTH to the worker
Steps to reproduce
Expected behaviour
The folder should contain two files: the remote one and the newly uploaded, renamed (as it happens if following the same steps without ever going offline).
Actual behaviour
The online file is overwritten by the new uploaded file (only one file present in the folder at the end)
Android version
17
Device brand and model
Emulator on Android Studio
Stock or custom OS?
Stock
Nextcloud android app version
35.0.0 RC1
Nextcloud server version
Nextcloud Hub 26 Spring (36.0.0 dev)
Using a reverse proxy?
No
Android logs
No response
Server error logs
Additional information
I think it's related to ConflictsResolveActivity having its own flow for offline uploads (see showOfflineOperationConflictDialog()) and passing Decision.KEEP_BOTH_FOLDER instead of KEEP_BOTH to the worker