Apache OpenOffice (AOO) Bugzilla – Issue 84718
Problem with SystemShellExecute if a parameter awaits input
Last modified: 2013-02-24 21:07:14 UTC
Hello! I want to run a program in shell mode. But there occur always a error if the parameter needs more input separated by a blank. As example look at these command line: thunderbird -compose mailto:test@ooo.invalid This opens a Thunderbird Compose Window with To:-line test@ooo.invalid. '--------------------------------------------- Dim sProg As String Dim sParam As String sProg = sParam = Dim lFlags As Long Dim oShellEx As Object lFlags = com.sun.star.system.SystemShellExecuteFlags.DEFAULTS oShellEx = CreateUNOService( "com.sun.star.system.SystemShellExecute" ) oShellEx.execute( sProg, sParam, lFlags ) '--------------------------------------------- With sProg = "thunderbird" sParam = "" Thunderbird starts. With sProg = "thunderbird" sParam = "-compose" a Compose Window opens. With sProg = "thunderbird" sParam = "-compose mailto:test.ooo@invalid" Thunderbird starts, but no Compose Window. Other programs returns with "invalid parameter" if there are blank separated parameter extensions. What's wrong? BTW: If i start Thunderbird with the given code, OOo waits until Thunderbird is closed ... Please try it with my attached document.
Created attachment 50438 [details] Problem with SystemShellExecute
jsc -> obr: as discussed per phone -> issue to you because you know the details
This service currently handles also URLs embedded in documents, so for security reasons, it escapes the blank(s) with '%20' and passes only a single parameter to the command (even though that violates the specification of the service). Maybe we were a bit to restrictive here and should check whether the first parameter is an URL or not before doing the encoding. Longtime goal is to have a dedicated UNO service for handling URLs.
*** Issue 87965 has been marked as a duplicate of this issue. ***
Created attachment 55267 [details] Dedicated UNO interface & service for a secure URL handling in documents
The new interface (as attached) has been discussed on this thread: http://www.openoffice.org/servlets/ReadMsg?list=interface-discuss&msgNo=814
Any progress on this issue?
cd: Please take over.