Hello everybody,

We have a problem with the officebean and the possibility of Windows XP to create a user with a blank resp. space in it like 'John Doe'. Please don't ask me why creating user with a 'blank' - One customer of us wants to do so!
Correct me, if i'm wrong - but I think the following steps happen:

The officebean gets the username from the system to create and execute a command-line call:

soffice.exe -bean -accept=pipe,name=<user.name>_Office;urp;StarOffice.NamingService

The blank in the username splits the parameter 'pipename' in two and destroys the whole command. We tried to compile the officebean in different ways to escape the blank - we tried to encapsule the username with ' or " - but the pipename contains the username and an OFFICE_ID_SUFFIX - so nothing seems to work!

For a better understanding - i hope:

   public LocalOfficeConnection()
{ // init member vars
       try
       {
setUnoUrl( "uno:pipe,name=" + getPipeName() + ";urp;StarOffice.ServiceManager" );
       }
       catch ( java.net.MalformedURLException e )
       {}
   }

   static String getPipeName()
   {
String aPipeName = System.getProperty("user.name") + OFFICE_ID_SUFFIX;
       .....
   }

Does anyone has an idea!? Or is it only bad administration to use spaces in usernames!?

hopefully
   marco gutzke


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to