Bug syncing file using notes all of a sudden (recently updated server and android client)

未关闭
#3,431 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
43/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
android, java
领域
mobile

调研方向

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 内容生成。

描述

0. Needs triage bug
This issue respects the following points:
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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/notes-android 的其他 Issue

查看 nextcloud/notes-android 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。