nextcloud / nextcloud/notes-android

Sync failed after adding a new category from a note

Open
#3,232 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
Dominant language
Java
Stars
1.1k
Forks
168
Avg merge
1d 17h
Merged PRs (30d)
31

Description

This issue respects the following points:
Describe the bug
  1. Create a note
  2. Save it. Sync work
  3. Open the note, add a NEW category (i tested with "W")
  4. Exit the note
  5. Sync fails
  6. Open the note, remove it from category
  7. Sync work
Expected behavior

Sync work after adding it to a category

Notes Android version

34.0.0

Notes server version

6.0.0

Nextcloud Android version

34.0.0

Nextcloud version

34.0.0

Device

Fairphone 5

Android Version

15

App Store
  • Google Play Store
  • F-Droid
  • Huawei App Gallery
Stacktrace
App Version: 34.0.0
App Version Code: 340000090
App Flavor: play

Files App Version Code: 340000090 (PROD)

---

OS Version: 5.4.274-qgki-gd51836b0c13b(VT2R)
OS API Level: 35
Device: FP5
Manufacturer: Fairphone
Model (and Product): FP5 (FP5)

---

java.lang.Exception: {"errorType":"OCP\\Files\\NotPermittedException"}
[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](http://android.os/).Binder.execTransactInternal(Binder.java:1500), [android.os](http://android.os/).Binder.execTransact(Binder.java:1444)]
	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:317)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652)
	at java.lang.Thread.run(Thread.java:1564)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with NotesServerSyncTask.pushLocalChanges at line 150 and reproduce the category-addition sequence described in the issue. Inspect how the NotPermittedException occurs during sync, then verify that saving a note with a newly added category completes synchronization without removing the category.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
63/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.