Bug 153430 - loadComponentfromUrl shows "lock" error message if url contains a backslash
Summary: loadComponentfromUrl shows "lock" error message if url contains a backslash
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.4.2.3 release
Hardware: All Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-07 07:36 UTC by Oliver Brinzing
Modified: 2023-03-29 19:35 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
result with win 10 (60.24 KB, image/png)
2023-03-29 17:01 UTC, Oliver Brinzing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Brinzing 2023-02-07 07:36:10 UTC
error message is a bit unfortune:

Sub Test
	Dim oDesktop
	Dim oDoc
	Dim mProps()
	Dim Url

	oDesktop = createUnoService("com.sun.star.frame.Desktop")
	Url = "file:///D:/Test\Test.xlsx"
'       ok
'	Url = "file:///D:/Test/Test.xlsx"

	oDoc = oDesktop.loadComponentFromURL(Url, "_blank", 0, mProps)
End Sub
Comment 1 Buovjaga 2023-03-28 11:04:32 UTC
I don't get a lock error message. I get this:

BASIC runtime error.
An exception occurred 
Type: com.sun.star.lang.IllegalArgumentException
Message: Unsupported URL <file:///D:/Test\Test.xlsx>: "type detection failed" at /home/user/libreoffice/framework/source/loadenv/loadenv.cxx:187.

It says Unsupported URL, so I don't think it's unfortunate.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 98cf5157d69d9f1692be7f2cac958b1dfb387ca9
CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 28 March 2023
Comment 2 Oliver Brinzing 2023-03-29 17:01:25 UTC
Created attachment 186292 [details]
result with win 10

please have a look at the attachment
Comment 3 Sven 2023-03-29 17:41:17 UTC
I get the same dialog as Oliver with windows 10.
It might be a windows only problem.

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: default