notes-android icon indicating copy to clipboard operation
notes-android copied to clipboard

NoteNotWritableException

Open alperozturk96 opened this issue 3 months ago • 0 comments

This issue respects the following points:

Describe the bug

  1. Have two accounts
  2. Create a note share from first account to second account with View only permission
  3. From second account, try to modify the shared note

Expected behavior

Second account should not be able to modify the note if the permission is view only.

Notes Android version

4.5.2 RC1

Notes server version

32

Nextcloud Android version

3.34.1 RC1

Nextcloud version

32

Device

Emulator

Android Version

16

App Store

  • [ ] Google Play Store
  • [ ] F-Droid
  • [ ] Huawei App Gallery

Stacktrace

java.lang.Exception: {"errorType":"OCA\\Notes\\Service\\NoteNotWritableException"}
[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:108), android.os.Binder.execTransactInternal(Binder.java:1473), android.os.Binder.execTransact(Binder.java:1418)]
	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:1563)

alperozturk96 avatar Nov 05 '25 13:11 alperozturk96