[Libreoffice-bugs] [Bug 141512] com.sun.star.system.SystemShellExecute does not correctly process paths with wildcards

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 6 12:25:35 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=141512

Mike Kaganski <mikekaganski at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sbergman at redhat.com

--- Comment #2 from Mike Kaganski <mikekaganski at hotmail.com> ---
A small correction: ".." is not a wildcard, but a relative path element.

(In reply to joesch04 from comment #0)
> Since LO 7.x, paths with wildcards are no longer processed correctly by
> "com.sun.star.system.SystemShellExecute".

In fact, this is not true. The URL is passed unchanged to the ShellExecuteExW,
and this is the limitation of *system* call that it disallows the relative
parts in the URL.

IMO this is NOTABUG, and was working previously just by accident, because
LibreOffice had pre-processed the URL (and that was wrong, since the idea
behind XSystemShellExecute::execute is pass the argument to system shell
unchanged).

The author of the extension (Jorg) likely should use a call to ConvertFromURL
[1] and pass the system path to the execute() call, which would succeed.

Stephan could correct me if I am wrong here; adding him to CC.

[1] https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03120313.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210406/0cdc0315/attachment.htm>


More information about the Libreoffice-bugs mailing list