Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicated cards after offline mode #1503

Open
2 of 4 tasks
raQai opened this issue Jun 24, 2023 · 3 comments
Open
2 of 4 tasks

duplicated cards after offline mode #1503

raQai opened this issue Jun 24, 2023 · 3 comments

Comments

@raQai
Copy link

raQai commented Jun 24, 2023

Please use GitHub reactions 馃憤 to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug

Cards are being duplicated after coming back online when previously in offline mode. This sometimes happens multiple times resulting in 5+ copies of the same item. This happened for me with every combination of background sync and etag configuration.

Steps to reproduce the behavior:

  1. Open board
  2. Enable Airplane mode
  3. Create a new card
  4. Close the app
  5. Disable Airplane mode
  6. Open board (optional: manually sync the view)

Expected behavior

The created card (3.) should only be visible once.

Screenshots

Versions

  • Nextcloud: 26.0.2
  • Nextcloud Deck: 1.9.2
  • Nextcloud Android: 3.25.0
  • Nextcloud Android Deck: 1.23.3

Smartphone (please complete the following information):

  • Device: Multiple (Pixel 4a, Pixel 5, Galaxy S22)
  • Android-Version: 13 (GrapheneOS and stock Google/Samsung)
  • App-Store:
    • Google Play Store
    • Google Play Store (Beta channel)
    • F-Droid
    • Huawei AppGallery

Stacktrace

{"id":570,"title":"offline card"}
{"id":573,"title":"offline card"}
@raQai
Copy link
Author

raQai commented Jul 25, 2023

FYI: This happens a lot with an unstable connection (e.g. traveling by train).
This is not tied to the Airplane mode but it can be used to consistently reproduce this.

@Goldmaster
Copy link

I have this issue as well. It also happens when your nextcloud instance is offline.

I do get this error due to the nextcloud instance being offline as my computer is turned off.

App Version: 1.23.4
App Version Code: 1023004
Server App Version: 1.12.0
App Flavor: fdroid

Files App Version Code: 30270090 (PROD)

---

OS Version: 4.14.113-23326020(G973FXXUEGULB)
OS API Level: 31
Device: beyond1
Manufacturer: samsung
Model (and Product): SM-G973F (beyond1lteeea)

---

com.nextcloud.android.sso.exceptions.NextcloudHttpRequestFailedException: HTTP request failed with HTTP status-code: 530
	at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:197)
	at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:180)
	at com.nextcloud.android.sso.api.NextcloudAPI.lambda$performRequestObservableV2$0$com-nextcloud-android-sso-api-NextcloudAPI(NextcloudAPI.java:122)
	at com.nextcloud.android.sso.api.NextcloudAPI$$ExternalSyntheticLambda0.subscribe(Unknown Source:6)
	at io.reactivex.internal.operators.observable.ObservableFromPublisher.subscribeActual(ObservableFromPublisher.java:31)
	at io.reactivex.Observable.subscribe(Observable.java:12284)
	at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
	at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
	at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.IllegalStateException: error code: 1033

	at com.nextcloud.android.sso.InputStreamBinder.processRequestV2(InputStreamBinder.java:454)
	at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestAndBodyStreamV2(InputStreamBinder.java:127)
	at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestV2(InputStreamBinder.java:110)
	at com.nextcloud.android.sso.aidl.IInputStreamService$Stub.onTransact(IInputStreamService.java:110)
	at android.os.Binder.execTransactInternal(Binder.java:1215)
	at android.os.Binder.execTransact(Binder.java:1179)

Screenshot showing card waiting to sync

@michel-thomas
Copy link

I also have a user with this problem. No known connection issue, but cards are duplicated several times (36 for the last card created today).

Nothing in server logs.

  • Nextcloud 27.1.7
  • Deck app 1.11.4
  • Deck Android : 1.24.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants