Issue 55822 - if soffice is called from another script that passes empty quoted variable, oo.org silently dies.
Summary: if soffice is called from another script that passes empty quoted variable, o...
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 680m130
Hardware: PC Linux, all
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 14:51 UTC by richlv
Modified: 2013-08-07 15:31 UTC (History)
3 users (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 richlv 2005-10-12 14:51:56 UTC
if at least one oo.org component is running and soffice or soffice.bin is called 
from another script that passes component to run and one or more empty quoted 
variables, oo.org just silently dies.
simple example :
create a script

#!/bin/bash
...
<path_to>/soffice[.bin] "$1" "$2"
...

( [] means optional)

call the script and pass only a single parameter to it (for example, have single 
writer instance already started and pass -calc)
instead of opening empty calc session, nothing happens.

if "$2" is removed from the script, another component is started correctly
Comment 1 thorsten.martens 2005-10-13 13:06:21 UTC
TM->PL: please have a look, thanks !
Comment 2 philipp.lohmann 2005-10-13 13:32:08 UTC
pl->tm: i do not know who owns the soffice script
Comment 3 richlv 2005-10-13 13:42:58 UTC
this seems to be connected to binary, too, as calling directly soffice.bin also 
exhibits the same behaviour.
Comment 4 kpalagin 2007-05-23 08:43:43 UTC
Confirming with OO 2.2.
Workarounds - 

#!/bin/sh
/usr/lib32/openoffice/program/soffice ${1} ${2}

or 

#!/bin/sh
/usr/bin/ooffice2 "$1" "$2"
Comment 5 kpalagin 2007-05-23 09:10:17 UTC
P.S. Reproduced on Gentoo.
Comment 6 thorsten.martens 2007-07-10 10:31:29 UTC
Not reproducible in a more recent build like a m217 anymore -> worksforme
Comment 7 richlv 2007-07-10 12:44:03 UTC
unfortunately, still reproducible with m218.

open a single writer instance, execute

/opt/ooo-dev2.3/program/soffice.bin -calc ""
nothing happens.

/opt/ooo-dev2.3/program/soffice.bin -calc
- this opens calc document fine.
Comment 8 thorsten.martens 2007-07-10 13:01:22 UTC
OK, now it's clear,...reproducible in a recent build.

TM->AS: please have a look. When using only the application-parameter (eg.
-calc) everything is fine, but when adding additional empty quotes "" the cursor
within the terminal window vanishes but reappears a few seconds later and
nothing else happens. Please reassign this issue to the appropiate developer, if
you're not the right one, thanks !

TM->richlv: Thanks a lot for staying tuned and investigating again ! 
Comment 9 thorsten.martens 2007-07-10 13:14:09 UTC
Changed target to 2.x
Comment 10 Mathias_Bauer 2007-12-04 16:19:58 UTC
according to release status meeting -> target 3.x
Comment 11 Mathias_Bauer 2009-05-06 17:15:05 UTC
Carsten, please take over