Bug 160784 - Uno Api - Java - Cursor error when move it to beginning of the table
Summary: Uno Api - Java - Cursor error when move it to beginning of the table
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
24.2.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: possibleRegression
Depends on:
Blocks:
 
Reported: 2024-04-22 19:11 UTC by Arthur Zanona
Modified: 2024-05-08 02:24 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Java Code for reproduces (7.33 KB, text/x-java)
2024-04-22 19:11 UTC, Arthur Zanona
Details
template example (10.49 KB, application/vnd.oasis.opendocument.text)
2024-04-22 19:16 UTC, Arthur Zanona
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Zanona 2024-04-22 19:11:04 UTC
Created attachment 193806 [details]
Java Code for reproduces

I have an extension in Writer that allows the user to create templates with custom metadata that will be processed later.

After version 7.4 of LibreOffice, this extension is presenting an Uno Api error when moving the cursor to the beginning of the table when the user's cursor is in any cell of the table.

Stack trace:

Exception in thread "main" com.sun.star.uno.RuntimeException: at /home/buildslave/source/libo-core/sw/source/core/unocore/unoobj.cxx:1231
	at com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:158)


I created an example simulating this error on GitHub.
https://github.com/zanonaa/TableWithDynamicCursor

* OpenJDK 8.0.412-zulu
* LibreOffice >= 7.4 - 24.2.2.2
* Linux Mint 21.3 Virginia x64
* Fedora release 39 (Thirty Nine) x64
* Windows 10 x64
Comment 1 Arthur Zanona 2024-04-22 19:16:20 UTC
Created attachment 193807 [details]
template example
Comment 2 Stéphane Guillou (stragu) 2024-05-08 02:24:24 UTC
Thanks for the report.
How do you source ooo.connector for your development environment?
Do you know which 7.4 version exactly was the earliest affected?