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

Error in Rich Edit Mode in NextCloud Notes

Open 0xt4req opened this issue 2 years ago • 3 comments

Android version: 11

Device: Symphony Z33

System language: English (US)

App version: 4.1.0

App source: https://play.google.com/store/apps/details?id=it.niedermann.owncloud.notes

Description: There is an error in Rich Edit Mode in NextCloud Notes. Please see the attached video for better understanding. The user is not able to use rich editor to create notes which is a business logic error. Because NextCloud provides the user to customize the notes as per the user wants. But in this case, rich editor mode is not opening.

Steps to reproduce:

  1. open the app
  2. click on a note
  3. click on rich edit mode.

You'll get an error.

Please see the video POC for better understanding. https://github.com/nextcloud/notes-android/assets/66784831/63767da8-b179-42a8-ad50-87c1dd3517f7

Thanks & Regards, 0xt4req

0xt4req avatar Dec 20 '23 18:12 0xt4req

I've been experiencing the same error on two different phones (both rooted).

Is there any sort of additional information that i might be able to provide?

thomascrisan avatar Jan 26 '24 15:01 thomascrisan

  • What appears in the Nextcloud Server log during these attempts to load the rich editor?
  • What version of the text app is installed on the Nextcloud Server?

joshtrichards avatar Mar 03 '24 15:03 joshtrichards

Same here, but the note is corrupt after returning to plain text - either empty or just some remnants - and cannot be restored.

On the server rich text editing works.

I have a managed cloud (murena.io) and don't know the notes version on the server.

App Version: 4.1.0
App Version Code: 40010090
App Flavor: fdroid

Files App Version Code: 30280090 (PROD)

---

OS Version: 4.9.337-lineage+(eng.root.20240221.223944)
OS API Level: 33
Device: axolotl
Manufacturer: SHIFT
Model (and Product): SHIFT6mq (lineage_axolotl)

---
java.lang.NullPointerException: item is null
	at io.reactivex.internal.functions.ObjectHelper.requireNonNull(ObjectHelper.java:39)
	at io.reactivex.Single.just(Single.java:839)
	at it.niedermann.owncloud.notes.edit.NoteDirectEditFragment.changeToEditMode(NoteDirectEditFragment.kt:329)
	at it.niedermann.owncloud.notes.edit.NoteDirectEditFragment.handleLoadError$lambda$10(NoteDirectEditFragment.kt:198)
	at it.niedermann.owncloud.notes.edit.NoteDirectEditFragment.$r8$lambda$Ki_8kpNhrZywBDxHTc4EONZ3QGQ(Unknown Source:0)
	at it.niedermann.owncloud.notes.edit.NoteDirectEditFragment$$ExternalSyntheticLambda0.onClick(Unknown Source:2)
	at com.google.android.material.snackbar.Snackbar.lambda$setAction$0$com-google-android-material-snackbar-Snackbar(Snackbar.java:352)
	at com.google.android.material.snackbar.Snackbar$$ExternalSyntheticLambda0.onClick(Unknown Source:4)
	at android.view.View.performClick(View.java:7542)
	at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1211)
	at android.view.View.performClickInternal(View.java:7519)
	at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
	at android.view.View$PerformClick.run(View.java:29476)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7924)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

bege10 avatar Mar 06 '24 02:03 bege10