Welcome, Guest. Please Login
 
  News:
Welcome to the new FileCatalyst - Unlimi-Tech Software community forum. This forum is read-only and is now only for reference. If you have a support request or are looking for information please use the Ticket system found at http://support.filecatalyst.com/
  HomeHelpSearchLoginRegister
 
Pages: 1
Send Topic Print
ZIP temporary folder configuration (Read 44 times)
Moe
YaBB Newbies
*
Offline



Posts: 7

ZIP temporary folder configuration
01/19/10 at 03:03:49
 
Hi,

When using the ZIP file packaging facilities of uUpload Secure, it looks like the applet is writing some temporary stuff to C:\WINNT\Profiles\[username]\unlimitedftp\temp

Is it possible to configure the path where the applet is writing this temporary files to? I intend to use this is a corporate network where writing to this path is not allowed.

Any feedback welcomed.

PS: Apologies for my 'english'. Not my own language.
Back to top
 
 
  IP Logged
Marc
YaBB Administrator
*****
Offline



Posts: 19

Re: ZIP temporary folder configuration
Reply #1 - 01/19/10 at 09:57:36
 
Hi Moe,
Here is how to change the location:

Add the following line to the UUpload js file depending on which applet you are working with:

Code:
document.writeln("<PARAM name='java_arguments' value='-Djava.io.tmpdir=/path/to/temp'>");

NOTE: this line must be added in the appropriate section. Look for the other lines that start with document.writeln("<PARAM name= 

Back to top
 
 
  IP Logged
Marc
YaBB Administrator
*****
Offline



Posts: 19

Re: ZIP temporary folder configuration
Reply #2 - 01/19/10 at 09:59:25
 
Of course you will wnat to change the temp folder location in the code above.
Back to top
 
 
  IP Logged
Moe
YaBB Newbies
*
Offline



Posts: 7

Re: ZIP temporary folder configuration
Reply #3 - 01/19/10 at 10:07:15
 
Thanks for the prompt answer!
I'm go to try it asap (I'll post the results)

Rgds,
Moe
Back to top
 
 
  IP Logged
Marc
YaBB Administrator
*****
Offline



Posts: 19

Re: ZIP temporary folder configuration
Reply #4 - 01/19/10 at 10:08:15
 
OK Moe,
Also note that this will only come into play if there is no write permissions in the “C:\WINNT\Profiles\[username]\unlimitedftp\temp” directory.  The applet will always try that directory first, then it tries the system temp folder defined by java.io.tmpdir.
Back to top
 
 
  IP Logged
Moe
YaBB Newbies
*
Offline



Posts: 7

Re: ZIP temporary folder configuration
Reply #5 - 01/19/10 at 10:15:00
 
Marc

I think that's the case. Our current Java policies didn't allow us to write to the user temp folder.

Thanks,
Back to top
 
 
  IP Logged
Moe
YaBB Newbies
*
Offline



Posts: 7

Re: ZIP temporary folder configuration
Reply #6 - 01/21/10 at 06:37:54
 
Hi Marc

I've tried the solution you gave me but it didn't work (for me) as expected.

I'm setting the temp path when instantiating the applet:

<PARAM name="java_arguments" value="-Djava.io.tmpdir=c:\DOCUME~1\u823441\LOCALS~1\Temp">

But at runtime, I get the exception:

Running on domain: **************.com
Running on IP: **.**.**.**
Key1: ***************** valid
java.security.AccessControlException: access denied (java.io.FilePermission c:\Documents and Settings\u823441\.unlimitedftp\temp write)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkWrite(Unknown Source)
at java.io.File.mkdir(Unknown Source)
at java.io.File.mkdirs(Unknown Source)
at unlimited.ftp.P.R(Unknown Source)
at unlimited.ftp.P.z(Unknown Source)
at unlimited.ftp.UUpload.jbInit(Unknown Source)
at unlimited.ftp.UUploadSecure.jbInit(Unknown Source)
at unlimited.ftp.UUpload.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Excepción: java.security.AccessControlException: access denied (java.io.FilePermission c:\Documents and Settings\u823441\.unlimitedftp\temp write)
Starting U-Upload Pro v1.7.0.2 03/24/2009 1531 on
Executing with Sun Microsystems Inc. -- Java(tm) 1.6.0_17

... then stops (does not try to use the 'alternate' temp path)

Note that the original temp path is not allowed in our java.policies (whilst the second is)

Regards,
Moises
Back to top
 
 
  IP Logged
Marc
YaBB Administrator
*****
Offline



Posts: 19

Re: ZIP temporary folder configuration
Reply #7 - 01/22/10 at 13:50:38
 
Can you try it again but instead of backslash "\" use the forward slash "/".
Back to top
 
 
  IP Logged
Moe
YaBB Newbies
*
Offline



Posts: 7

Re: ZIP temporary folder configuration
Reply #8 - 01/26/10 at 05:51:48
 
Just tried. Same as before (look at my previous post).
It looks like the beforementioned exception stops the execution.
Back to top
 
 
  IP Logged
Marc
YaBB Administrator
*****
Offline



Posts: 19

Re: ZIP temporary folder configuration
Reply #9 - 01/29/10 at 14:24:58
 
Can you try it to a folder like c:/temp or something? don'
t go into documetns and settings at all.
Back to top
 
 
  IP Logged
Moe
YaBB Newbies
*
Offline



Posts: 7

Re: ZIP temporary folder configuration
Reply #10 - 02/01/10 at 06:59:49
 
Now tried with Djava.io.tmpdir set to c:\temp (folder do exist).
Same error (exception) as before.
Back to top
 
 
  IP Logged
Marc
YaBB Administrator
*****
Offline



Posts: 19

Re: ZIP temporary folder configuration
Reply #11 - 02/05/10 at 12:41:52
 
Moe, I am checking with a lead developer on this issue.
I'll post my findings as soon as I have one.
Back to top
 
 
  IP Logged
Marc
YaBB Administrator
*****
Offline



Posts: 19

Re: ZIP temporary folder configuration
Reply #12 - 02/25/10 at 15:09:13
 
Moe,
sorry to get back so late on this.
We have this KB doc taht I located. Can you read through it and let me know if any of this helps. This is the origin of the first reply I gave you.
http://support.filecatalyst.com/index.php?_m=knowledgebase&_a=viewarticle&kba...

Let me know if you are still having issues with this.

Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print