Fix conflicts for offline uploads when uploading same file again - #17590
Fix conflicts for offline uploads when uploading same file again#17590daniele-verducci wants to merge 12 commits into
Conversation
|
@tobiasKaminsky should this be in milestone 35 or 36? |
|
APK file: https://github.com/nextcloud/android/actions/runs/34251212640/artifacts/10066358893 |
7ae46de to
aea7023
Compare
cbe3c19 to
ea79580
Compare
|
Hey @alperozturk96 , as anticipated I fixed also the missing case, so I re-requested your review. You can check just the last 4 (new) commits.
So, the last commits fixes the dialog content and the overwrite. If approved, will close #17589 . Thank you! |
|
/backport to stable-35.0.x |
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
… already uploaded file Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
…g etagOnServer field properly in UploadFileOperation Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
… edge cases Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
…d new name to the one used for online Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
804d2fd to
57df3dd
Compare
|
blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed. |
|
APK file: https://github.com/nextcloud/android/actions/runs/34466906550/artifacts/10150066862 |
Fixes the following two problems:
Conflict message being shown for offline uploads when the offline-uploaded file is the same as the remote
Fixes the conflict message being shown for offline uploads when the offline-uploaded file is the same as the remote. This makes the behavior aligned with what happens online.
How to repro:
Now execute the same actions in a new folder without going offline:
This is because the offline upload erases the etag_on_server field for the already existing db entry.
This PR fixes this issue.
Remote file overwritted by local file when selecting "keep both" after offline upload
This PR does fix this this second issue: #17589
How to repro:
🏁 Checklist
/backport to stable-xx.x🤖 AI (if applicable)