Note body overwritten with the app's own error text when loading content fails
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
調査の方向性
Start with NotesServerSyncTask.pushLocalChanges around line 150, then follow the sync flow from NotesServerSyncTask.run. Check how failed content loads are represented before local changes are pushed. Done means an error or status message is shown without replacing the note body, and sync can retry later.
索引モデルが issue の本文から書いたものです。
説明
Environment
- Nextcloud Notes for Android 35.0.0 (version code 350000090,
play), signed in through the Nextcloud Files app (SSO) - Android 16 / API 37, Pixel 9 Pro (caiman)
- Nextcloud server 34.0.5.1, server app
notes6.1.0
What happened
- A note existed on the server, 7041 bytes, real content.
- For a few seconds the server could not read the file (infrastructure problem on our side,
file_get_contents(): Failed to open stream: Permission denied→OCP\Files\GenericFileException). While that was going on, the note was opened in the app and the editor showedFehler: OCP\Files\GenericFileExceptioninstead of the content. - Afterwards the note on the server was 40 bytes and contained:
Fehler: OCP\\Files\\GenericFileException
A version file created at the same second (…v1793375498) holds the same text with single backslashes, 38 bytes.
Why this looks client-side
The server log has no request and no error at the time of the write, so the write itself succeeded. The error string was uploaded as the note body by the client, and the backslashes were escaped on the second write.
Expected
The app should never write its own error or status text into the note body. Show the error, leave the note untouched, retry the sync later.
Impact
Silent data loss: the original 7041-byte note was replaced by an error message and would have been pushed to the server on the next sync.
Stack trace of the failing sync
java.lang.Exception: {"errorType":"Exception"}
[com.nextcloud.android.sso.InputStreamBinder.processRequestV2(InputStreamBinder.java:440), ...]
at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pushLocalChanges(NotesServerSyncTask.java:150)
at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:99)
Happy to provide server logs or a recording if that helps.
- 主要言語
- Java
- スター
- 1.1k
- フォーク
- 176
- 平均マージ
- 23時間 22分
- マージ済み PR(30日)
- 25
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/notes-android のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
nextcloud/notes-android#3367 ·
メンテナーはふだん 1 日以内に返信
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
nextcloud/notes-android#3353 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Sync failure対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン0. Needs triage bug
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
nextcloud/notes-android#3420 · コメント 1 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
nextcloud/notes-android#3418 ·
メンテナーはふだん 1 日以内に返信
-
design enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
nextcloud/notes-android#3412 ·
メンテナーはふだん 1 日以内に返信
nextcloud/notes-android の issue をすべて見る
似ている issue
-
API `/api/dataverses/{identifier}/dataset/linkingDataverses?alreadyLinking=true` returns at most 1 collection対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンType: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
javaoperatorsdk.client.oauth-token has no effect on the Kubernetes client対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
MCP add-on: JSON responses with non-ASCII characters are truncated (wrong Content-Length)対応中かも @dhanushbs10 が今日担当しました。 オープンadd-on bug in:mcp
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Map.Coordinate does not implement proper equals対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンvaadin-map
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
vaadin/flow-components#10586 ·
メンテナーはふだん 1 日以内に返信
-
WeReadInstaller writes the launcher database on the main thread at handover (Activity pause timeout)オープンbug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100