nmphuong93 / jodconverter

Automatically exported from code.google.com/p/jodconverter
0 stars 0 forks source link

Configurable instance profile directory #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently jodconverter uses java.io.tmpdir as directory for user installation 
directories. I don't know who's to blame but either Windows or OpenOffice does 
a sub optimal job when the directory structure is to large (i.e. a directory 
including the file:/// protocol definition that is larger than 104 characters 
will result in a failing instance creation)

The only configurable position right now is to properly configure the 
java.io.tmpdir - in our case via CATALINA_TMPDIR. Our application however 
already provides information about temporary directories and it would be nice 
to pass this information on to jodconverter

What steps will reproduce the problem?
1. run soffice.exe 
-env:UserInstallation=file:///C:/23456789/123456789/123456789/123456789/12345678
9/123456789/123456789/123456789/123456789/__105
2. OpenOffice 3.2 fails to open (OpenOffice 3.3 fails with longer directory 
name)

What is the expected output? What do you see instead?

It would be nice to have a parameter to overwrite the default usage of 
java.io.tmpdir. 

Original issue reported on code.google.com by herwig.k...@gmail.com on 9 Dec 2010 at 2:41

GoogleCodeExporter commented 9 years ago

Original comment by mirko.na...@gmail.com on 12 Mar 2011 at 5:21

GoogleCodeExporter commented 9 years ago
Any ideas how you want this implemented? Option to set instanceProfileDir as 
File?

Original comment by shervin.asgari@gmail.com on 22 Mar 2011 at 1:56

GoogleCodeExporter commented 9 years ago
Yes, something like that.

Original comment by mirko.na...@gmail.com on 22 Mar 2011 at 3:34

GoogleCodeExporter commented 9 years ago
Fixed in branch sigar commit nr 180

Original comment by shervin.asgari@gmail.com on 23 Mar 2011 at 10:37

GoogleCodeExporter commented 9 years ago
Setting newly-added status "FixedInBranch" to be able to tell what still needs 
to be merged into trunk.

Original comment by mirko.na...@gmail.com on 27 Mar 2011 at 11:13

GoogleCodeExporter commented 9 years ago

Original comment by mirko.na...@gmail.com on 27 Mar 2011 at 1:12

GoogleCodeExporter commented 9 years ago
Change in branch is incorrect - we don't want to make instanceProfileDir 
configurable but its parent (tmp) dir.

Original comment by mirko.na...@gmail.com on 7 May 2011 at 11:06

GoogleCodeExporter commented 9 years ago

Original comment by mirko.na...@gmail.com on 7 May 2011 at 3:34

GoogleCodeExporter commented 9 years ago
Fixed in r202 - added DefaultOfficeManagerConfiguration.setWorkDir()

Original comment by mirko.na...@gmail.com on 18 Jun 2011 at 6:31