Offline upload conflicts resolution overwrites the remote file even if the user select to keep both

オープン
#17,589 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, kotlin
領域
mobile-dev

調査の方向性

ConflictsResolveActivity から開始し、オフラインアップロード worker 内の showOfflineOperationConflictDialog() をたどり、Decision.KEEP_BOTH_FOLDER と KEEP_BOTH のどちらが選択されるかに注意してください。オフラインの競合フローを再現し、その後、両方を保持する選択によってリモートファイルが残り、名前を変更したアップロード済みファイルが作成されることを、オンライン時の動作と一致する形で確認してください。

索引モデルが issue の本文から書いたものです。

説明

approved bug
⚠️ Before posting ⚠️
  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
  1. Create a folder
  2. Upload a file (e.g. a text file)
  3. Go offline (e.g. airplane mode)
  4. Change the file (e.g. add some characters)
  5. Upload a second time the file
  6. Go online
  7. A conflict message is shown
  8. Choose to keep BOTH files
  9. 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

主要言語
Kotlin
スター
5.7k
フォーク
2.1k
平均マージ
1日 22時間
マージ済み PR(30日)
135

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/android のほかの issue

nextcloud/android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。