Java 1.7 and SFTP

All others add-ons (Secure FTP, SCP, Flickr, scripts ...).

Java 1.7 and SFTP

Postby hauky » Wed Jan 23, 2013 9:14 pm

I have an installation of JFU with SFTP addon (both 2.9.1) that works fine with Java 1.6 installed. When 1.7 is installed, it does not upload successfully. In the Java console, it gets to the line where it tries to enable PASV and then stops. Looking at the SFTP server's logs, it shows an active connection for about a minute before it terminates it.

I've tried adding <param name="java_arguments" value="-Djava.net.preferIPv4Stack=true"> to the page, but it doesn't have an effect. Is there some other param I should pass in?
hauky
 
Posts: 6
Joined: Tue Nov 08, 2011 7:09 pm

Re: Java 1.7 and SFTP

Postby support » Sat Feb 02, 2013 11:44 am

Are you using Windows or MacOSX or ?
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: Java 1.7 and SFTP

Postby hauky » Mon Feb 04, 2013 8:42 pm

Windows 7 64 bit (but 32 bit browsers/Java plugins). We've tried in IE8, Chrome, and Firefox all without success.
hauky
 
Posts: 6
Joined: Tue Nov 08, 2011 7:09 pm

Re: Java 1.7 and SFTP

Postby hauky » Tue Feb 05, 2013 3:17 pm

I tried running this once with tracing enabled in the Java console, and it pauses after this (I'm Xing out the IP address):

[INFO] E - Connected to sftp://x.x.x.178
[INFO] E - OK
[INFO] E - PASV enabled
network: Connecting http://x.x.x.178:22/ with proxy=DIRECT
hauky
 
Posts: 6
Joined: Tue Nov 08, 2011 7:09 pm

Re: Java 1.7 and SFTP

Postby hauky » Tue Feb 05, 2013 4:27 pm

I've also tried disabling the Windows firewall completely and applying MS hotfix KB2754804 to my Windows installation with no effect.
hauky
 
Posts: 6
Joined: Tue Nov 08, 2011 7:09 pm

Re: Java 1.7 and SFTP

Postby support » Tue Feb 12, 2013 8:58 pm

Could you provide a testing SFTP account to support(at)jfileupload(dot)com so we can try to reproduce the problem from here?
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: Java 1.7 and SFTP

Postby hauky » Thu Feb 21, 2013 2:55 pm

For anyone who finds this in the future: we were able to fix it by disabling Kerberos/NTLM auth in our SFTP server. We had to disable these because JFU would stop after these lines:

[DEBUG] SFTPClient - Authentications that can continue:
gssapi-with-mic,publickey,keyboard-interactive,password
[DEBUG] SFTPClient - Next authentication method: gssapi-with-mic

Disabling these two auths cause it to not include gssapi-with-mic in the list, so JFU continues to the other methods successfully.
hauky
 
Posts: 6
Joined: Tue Nov 08, 2011 7:09 pm

Re: Java 1.7 and SFTP

Postby support » Thu Feb 28, 2013 7:29 am

Thanks.
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm


Return to Others



cron

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.