Bug syncing file using notes all of a sudden (recently updated server and android client)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the account update handling at ManageAccountsActivity.java:208 and the sync upload path at NotesServerSyncTask.java:150, using the two reported stack traces to follow the failures. Check whether the account error and upload error share a cause after the server and client updates. Done means account recovery works and the edited file syncs successfully without reporting changes when client and server content already matches.
由索引模型根据 Issue 内容生成。
描述
This issue respects the following points:
- I have read the FAQ
- I have searched for existing issues
- The issue affects the Notes Android app, neither the Notes server app nor the Nextcloud Android app.
Describe the bug
I opened an existing file in the notes app
I edited it
I closed it (it tried to sync and failed with this exception).
I checked the accounts section afterwards and a red circle shown for my account
I couldn't see how to update it so I tried to add a new account, it offered me the same account as an option so I picked it, it updated the existing one and the red circle is now gone but, because I updated the file using the nextcloud app to stop me losing the data, it now fails to sync the file with a new error... I guess technically these are two independent bugs, but they are so likely linked I've added both here
Expected behavior
The file should have synced. It looks like an auth token expired and it should have regenerated a new one itself.
The file sync should have later on correctly identified no changes between client and server and marked the sync as complete
Error 1:
App Version: 35.0.0
App Version Code: 350000090
App Flavor: play
Files App Version Code: 17939 (QA)
Files App Version Code: 350000290 (PROD)
---
OS Version: 4.19.87-27102101(G986BXXSNHYB1)
OS API Level: 33
Device: y2s
Manufacturer: samsung
Model (and Product): SM-G986B (y2sxeea)
---
android.accounts.NetworkErrorException: HTTP status code: 900
at it.niedermann.owncloud.notes.manageaccounts.ManageAccountsActivity$4.lambda$onResponse$0(ManageAccountsActivity.java:208)
at it.niedermann.owncloud.notes.manageaccounts.ManageAccountsActivity$4.$r8$lambda$0gcJTC3yWwHnIcKPdOGbwaOpT10(ManageAccountsActivity.java:0)
at it.niedermann.owncloud.notes.manageaccounts.ManageAccountsActivity$4$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Error2:
App Version: 35.0.0
App Version Code: 350000090
App Flavor: play
Files App Version Code: 17939 (QA)
Files App Version Code: 350000290 (PROD)
---
OS Version: 4.19.87-27102101(G986BXXSNHYB1)
OS API Level: 33
Device: y2s
Manufacturer: samsung
Model (and Product): SM-G986B (y2sxeea)
---
java.lang.Exception: {"errorType":"Exception"}
[com.nextcloud.android.sso.InputStreamBinder.processRequestV2(InputStreamBinder.java:440), com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestAndBodyStreamV2(InputStreamBinder.java:113), com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestV2(InputStreamBinder.java:96), com.nextcloud.android.sso.aidl.IInputStreamService$Stub.onTransact(IInputStreamService.java:112), android.os.Binder.execTransactInternal(Binder.java:1316), android.os.Binder.execTransact(Binder.java:1280)]
at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pushLocalChanges(NotesServerSyncTask.java:150)
at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:99)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:520)
at java.util.concurrent.FutureTask.run(FutureTask.java:328)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1100)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:1571)
Notes Android version
35.0
Notes server version
35.0
Nextcloud Android version
35.0.2
Nextcloud version
35.0.2
Device
Samsung s20 plus
Android Version
13
App Store
- Google Play Store
- F-Droid
- Huawei App Gallery
Stacktrace
App Version: 35.0.0
App Version Code: 350000090
App Flavor: play
Files App Version Code: 17939 (QA)
Files App Version Code: 350000290 (PROD)
OS Version: 4.19.87-27102101(G986BXXSNHYB1)
OS API Level: 33
Device: y2s
Manufacturer: samsung
Model (and Product): SM-G986B (y2sxeea)
android.accounts.NetworkErrorException: HTTP status code: 900
at it.niedermann.owncloud.notes.manageaccounts.ManageAccountsActivity$4.lambda$onResponse$0(ManageAccountsActivity.java:208)
at it.niedermann.owncloud.notes.manageaccounts.ManageAccountsActivity$4.$r8$lambda$0gcJTC3yWwHnIcKPdOGbwaOpT10(ManageAccountsActivity.java:0)
at it.niedermann.owncloud.notes.manageaccounts.ManageAccountsActivity$4$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
- 主要语言
- Java
- 星标
- 1.1k
- 派生
- 176
- 平均合并
- 21 小时 27 分钟
- 30 天内合并 PR
- 32
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 个 reaction ·
维护者通常 1 天内回复
-
Sync failure可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭0. Needs triage bug
难度 4/5 3-5 天 新手友好度 18/100
nextcloud/notes-android#3420 · 1 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 38/100
nextcloud/notes-android#3418 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 52/100
nextcloud/notes-android#3415 ·
维护者通常 1 天内回复
查看 nextcloud/notes-android 的全部 Issue
相似的 Issue
-
hermes-queue
难度 1/5 1 小时以内 新手友好度 85/100
chrisalunlloyd2-sudo/mindpalace#337 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
ucsb-cs156/proj-frontiers#844 ·
-
type: dependency-upgrade
难度 1/5 1 小时以内 新手友好度 76/100
spring-projects/spring-security#20057 ·
维护者通常 1 天内回复
-
Spark benchmarks crash with `[INVALID_DRIVER_MEMORY]` on JVMs whose default heap is below Spark's ~450 MB minimum可能已有人在做 @sendaoYan 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 79/100
-
难度 2/5 1-3 小时 新手友好度 82/100
moquette-io/moquette#980 ·