Issue 84718 - Problem with SystemShellExecute if a parameter awaits input
Summary: Problem with SystemShellExecute if a parameter awaits input
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Linux, all
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
: 87965 (view as issue list)
Depends on:
Reported: 2007-12-18 16:32 UTC by mroe
Modified: 2013-02-24 21:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Problem with SystemShellExecute (8.55 KB, application/vnd.oasis.opendocument.text)
2007-12-18 16:33 UTC, mroe
no flags Details
Dedicated UNO interface & service for a secure URL handling in documents (579 bytes, application/x-compressed)
2008-07-22 08:06 UTC, nospam4obr
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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.