Skip to content

NoteNotWritableException #2908

@alperozturk96

Description

@alperozturk96

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions