nextcloud / nextcloud/notes-android
Sync failed after adding a new category from a note
Open
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:
- 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
- Create a note
- Save it. Sync work
- Open the note, add a NEW category (i tested with "W")
- Exit the note
- Sync fails
- Open the note, remove it from category
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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