Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link #2546

Open
4 of 6 tasks
tembares opened this issue Jan 12, 2025 · 2 comments
Open
4 of 6 tasks

Link #2546

tembares opened this issue Jan 12, 2025 · 2 comments
Assignees
Labels

Comments

@tembares
Copy link

This issue respects the following points:

Describe the bug

On the mobile Android NOTES app, I selected the LINK option.
Then I saw a pop up coming up.

Expected behavior

Add a link

Notes Android version

4.3.1

Notes server version

Latest

Nextcloud Android version

Latest

Nextcloud version

Latest

Device

Pixel 5

Android Version

Latest

App Store

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

Stacktrace

App Version: 4.3.1
App Version Code: 40030192
App Flavor: play

Files App Version Code: 30300790 (PROD)

---

OS Version: 4.19.278-g7b0944645172-ab10812814(11260668)
OS API Level: 34
Device: redfin
Manufacturer: Google
Model (and Product): Pixel 5 (redfin)

---

java.lang.IndexOutOfBoundsException: charAt: 402 >= length 402
	at android.text.SpannableStringBuilder.charAt(SpannableStringBuilder.java:125)
	at it.niedermann.android.markdown.MarkdownUtil.insertLink(MarkdownUtil.java:535)
	at it.niedermann.android.markdown.controller.applier.LinkCa.applyCommand(LinkCa.java:18)
	at it.niedermann.android.markdown.controller.Command.lambda$applyCommand$0(Command.java:71)
	at it.niedermann.android.markdown.controller.Command$$ExternalSyntheticLambda0.apply(D8$$SyntheticClass:0)
	at java.util.Optional.map(Optional.java:260)
	at it.niedermann.android.markdown.controller.Command.applyCommand(Command.java:71)
	at it.niedermann.android.markdown.markwon.MarkwonMarkdownEditor.executeCommand(MarkwonMarkdownEditor.java:314)
	at it.niedermann.android.markdown.markwon.format.AbstractFormattingCallback.onActionItemClicked(AbstractFormattingCallback.java:91)
	at android.widget.Editor$TextActionModeCallback.onActionItemClicked(Editor.java:4739)
	at com.android.internal.policy.DecorView$ActionModeCallback2Wrapper.onActionItemClicked(DecorView.java:2703)
	at com.android.internal.view.FloatingActionMode$3.onMenuItemSelected(FloatingActionMode.java:97)
	at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:788)
	at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
	at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:935)
	at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:925)
	at com.android.internal.view.FloatingActionMode.lambda$setFloatingToolbar$0(FloatingActionMode.java:122)
	at com.android.internal.view.FloatingActionMode.$r8$lambda$GLgk8deM4E5TWGJBQ3xBpWWp_5A(Unknown Source:0)
	at com.android.internal.view.FloatingActionMode$$ExternalSyntheticLambda0.onMenuItemClick(Unknown Source:2)
	at com.android.internal.widget.floatingtoolbar.LocalFloatingToolbarPopup$2.onClick(LocalFloatingToolbarPopup.java:177)
	at android.view.View.performClick(View.java:7659)
	at android.view.View.performClickInternal(View.java:7636)
	at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
	at android.view.View$PerformClick.run(View.java:30156)
	at android.os.Handler.handleCallback(Handler.java:958)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8177)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

@strugee
Copy link
Member

strugee commented Jan 13, 2025

Hi, welcome to Nextcloud!

Nextcloud developers (which I am not one of) need more information - please edit your issue to be much more specific than this. You need to provide exact steps to reproduce (see this FAQ entry for an example), and you need to provide actual version numbers instead of "latest". This makes your report more useful now (how do we know that you haven't failed to receive an update for some reason? Or if you're part of a staged rollout?) and in the future ("latest" isn't very helpful 2 months from now).

@alperozturk96
Copy link
Collaborator

@tembares Thank you for the report. Could you please provide the steps to reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants