Issue 84718

Summary: Problem with SystemShellExecute if a parameter awaits input
Product: App Dev Reporter: mroe <mroe.nospam>
Component: apiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: cno, issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Description Flags
Problem with SystemShellExecute
Dedicated UNO interface & service for a secure URL handling in documents none

Description mroe 2007-12-18 16:32:30 UTC

I want to run a program in shell mode.
But there occur always a error if the parameter needs more input separated by a

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 =
oShellEx = CreateUNOService( "" )
oShellEx.execute( sProg, sParam, lFlags )

sProg = "thunderbird"
sParam = ""
Thunderbird starts.

sProg = "thunderbird"
sParam = "-compose"
a Compose Window opens.

sProg = "thunderbird"
sParam = "-compose"
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.
Comment 1 mroe 2007-12-18 16:33:41 UTC
Created attachment 50438 [details]
Problem with SystemShellExecute
Comment 2 jsc 2007-12-20 09:24:42 UTC
jsc -> obr: as discussed per phone -> issue to you because you know the details 
Comment 3 nospam4obr 2007-12-20 10:03:30 UTC
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.

Comment 4 nospam4obr 2008-04-07 18:31:52 UTC
*** Issue 87965 has been marked as a duplicate of this issue. ***
Comment 5 nospam4obr 2008-07-22 08:06:40 UTC
Created attachment 55267 [details]
Dedicated UNO interface & service for a secure URL handling in documents
Comment 6 nospam4obr 2008-07-22 08:11:09 UTC
The new interface (as attached) has been discussed on this thread:
Comment 7 ccheney 2009-03-20 22:49:23 UTC
Any progress on this issue?
Comment 8 kai.sommerfeld 2009-06-16 10:33:19 UTC
cd: Please take over.