Issue 87965 - OOo XSystemShellExecute treats all parameters as one
Summary: OOo XSystemShellExecute treats all parameters as one
Status: CLOSED DUPLICATE of issue 84718
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.4.0
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: nospam4obr
QA Contact: issues@framework
URL: https://bugs.edge.launchpad.net/ubunt...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-06 22:09 UTC by ccheney
Modified: 2013-08-07 15:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ccheney 2008-04-06 22:09:14 UTC
From the Ubuntu bug report:

http://lxr.go-oo.org/source/api/offapi/com/sun/star/system/XSystemShellExecute.idl

offapi/com/sun/star/system/XSystemShellExecute.idl

"
@param aParameter
Specifies a list of space separated parameters. The method does not
validate the given parameters, but only passes it as a parameter to the
specified command.
"

This should be a list of parameters not a space separated string. Otherwise
calling a shell script that prints its args (which will break running real code)
will return something like this:

arg 1 - $1 = "foo bar baz"
arg 2 - $2 = ""
arg 3 - $3 = ""
all args - $@ = "foo bar baz"

instead of what it should:

arg 1 - $1 = "foo"
arg 2 - $2 = "bar"
arg 3 - $3 = "baz"
all args - $@ = "foo bar baz"
Comment 1 thorsten.martens 2008-04-07 10:27:53 UTC
TM->MBA: please have a look, thanks !
Comment 2 Mathias_Bauer 2008-04-07 15:36:03 UTC
Oliver, please take over
Comment 3 nospam4obr 2008-04-07 18:31:53 UTC
Unfortunately a security problem forced us to change the implementation to no
longer comply to the specification. We first need a secure replacement for
opening URLs from documents before we can fix this. See issue 84718 for progress
updates.

*** This issue has been marked as a duplicate of 84718 ***
Comment 4 nospam4obr 2008-04-07 18:32:21 UTC
.