This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256031 - Ftp with explicit TLS now failing with new cpanel 11.52 build 17
Summary: Ftp with explicit TLS now failing with new cpanel 11.52 build 17
Status: RESOLVED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-19 22:37 UTC by garyhoffmann
Modified: 2016-06-03 07:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log from IDE - look for styles.css (62.27 KB, text/plain)
2015-10-19 22:37 UTC, garyhoffmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description garyhoffmann 2015-10-19 22:37:44 UTC
Created attachment 156814 [details]
Log from IDE - look for styles.css

Once of my servers was just updated to 11.52.0 build 17 today.  As soon as that update was completed, I can no longer upload files from Netbeans using FTP with Explicit TLS.

This server is normally set to Required for TLS, but I have control of the server and set to optional for testing.

First, I was running Netbeans 8.0.2 with JDK 1.7.0_71 32bit.  When I tried to upload a file it would get an error about DH packet.  I searched the web and found that upgrading to JDK 1.8* should solve this problem.

I installed JDK 1.8.0_60 and changed my netbeans.conf file to use this as the JDK directory.

Now, when I try to upload a file with TLS, the file upload occurs, but I get an error at the very end.  In looking at the IDE logs, I see what's attached.

If I switch out of TLS mode, the file will upload, but I like to keep my servers requiring TLS.

Any direction you can point me would be great.  I'm guessing there was an update to Apache that's causing the problem, but I'm no expert in this area.
Comment 1 garyhoffmann 2015-10-19 22:39:01 UTC
Should have said my server was updated to cPanel 11.52.0 build 17
Comment 2 Tomas Mysik 2015-10-20 12:00:20 UTC
Well, I have no idea what "cpanel" is but as you wrote it worked for you before you have updated your server - so, I would suspect this change on your server, not NetBeans. Looking into the IDE log you have attached, I see [1] - response code 421 means "Service not available, closing control connection. This may be a reply to any command if the service knows it must shut down." [2] so again, seems to me to be a problem on your server.

Perhaps what you can do is to try another FTP client to see whether it works or not.

Thanks for reporting.
[1] org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received.  Server closed connection.
[2] https://en.wikipedia.org/wiki/List_of_FTP_server_return_codes
Comment 3 garyhoffmann 2015-10-20 12:19:18 UTC
Hi Tomas,

cPanel is the most widely used website hosting control panel on linux servers.

I don't doubt that there was a change to the server that has caused the software to stop working as expected and as it had in the past.  As cPanel updates come out, there may be updates to Apache as well as all the other server components.

As you suggested, I tried FileZilla and did not have a problem uploading this same file (this happens on all files using Netbeans - I only tried the one file as shown in the log with FileZilla for this test).

I usually use FileZilla to upload the entire site and then use Netbeans to upload changes I make as I make them.  I have not had a problem with uploading using FileZilla and never had a problem until yesterday with Netbeans.

Yes, that means that something changed on the server, but since cPanel is so widely used, I can imagine other developers will run into this as well.

I'm setting the status to reopened - if you really feel this is resolved as invalid, then I, sadly, will be forced to look for a new development tool.  cPanel is the basis of all of the servers I use (and of every web server I've used in the past 10 years) and I suspect will be updated over the next week on all of my servers.
Comment 4 garyhoffmann 2015-10-20 12:36:18 UTC
As a further test, I also do not have a problem using Dreamweaver to upload files to that same server.
Comment 5 Tomas Mysik 2015-10-20 12:48:57 UTC
I can keep this issue opened but honestly, I do not think NetBeans can fix FTP response code 421. IMO it is the same situation like: browser, please fix this 404 error ;) But I can be wrong, of course, especially if other tools work for you (please, double check your setting in NetBeans to verify that they are correct, thanks).

Anyway NetBeans uses Apache Commons Net for FTP so it could be perhaps a bug in this library? Or, it might be related - as you wrote in your initial description - to Java; could you please try some other FTP client *written in Java*? Or if you could try NetBeans from other OS than Windows (e.g. Linux).

Thanks.
Comment 6 garyhoffmann 2015-10-20 12:57:11 UTC
Can you point me to another FTP client that's written in Java?

I don't have the ability to test Netbeans on anything other than Windows.
Comment 7 Tomas Mysik 2015-10-20 13:38:24 UTC
(In reply to garyhoffmann from comment #6)
> Can you point me to another FTP client that's written in Java?

Unfortunately, I do not use FTP at all so no idea, sorry. But you can always try Eclipse or any other IDE written in Java with FTP support :)

> I don't have the ability to test Netbeans on anything other than Windows.

So, can you please create a test account for me? Just send it to my @netbeans.org e-mail so it will be private.

Thanks.
[1] http://finj.sourceforge.net/
Comment 8 Tomas Mysik 2015-10-20 13:40:03 UTC
(In reply to garyhoffmann from comment #6)
> Can you point me to another FTP client that's written in Java?

Tried to google it now and found e.g. [1] or [2] (not sure how usable they are).

Thanks for your cooperation.
[1] http://www.sauronsoftware.it/projects/ftp4j/index.php
[2] http://finj.sourceforge.net/howto.php
Comment 9 Tomas Mysik 2015-10-20 13:40:43 UTC
Last, but not least - could you please try the latest version of NetBeans? It means 8.1 RC at the moment.

Thanks.
Comment 10 garyhoffmann 2015-10-20 14:47:34 UTC
These only seem to be libraries.  I will see if I can find any others.
Comment 11 garyhoffmann 2015-10-20 14:48:25 UTC
One workaround that may help...If I encrypt only the authentication, it transfers the file - this may help others, so I wanted to report it here.
Comment 12 bislewl 2015-12-04 20:30:39 UTC
A workaround from cPanel:
To update, the it's been determined the issue here is with the individual FTP clients rather than the server configuration. RFC compliance requires the same TLS session used for both control and data connections. The suggested solution is to browse to "WHM Home » Service Configuration » FTP Server Configuration", and set "Broken Clients Compatibility" to "Yes" to workaround the issue with the FTP client. 

https://forums.cpanel.net/threads/pure-ftpd-not-working-on-cpanel-11-52.503171/#post-2025441
Comment 13 Tomas Mysik 2016-06-03 07:16:15 UTC
(In reply to bislewl from comment #12)
> A workaround from cPanel:
> To update, the it's been determined the issue here is with the individual
> FTP clients rather than the server configuration. RFC compliance requires
> the same TLS session used for both control and data connections. The
> suggested solution is to browse to "WHM Home » Service Configuration » FTP
> Server Configuration", and set "Broken Clients Compatibility" to "Yes" to
> workaround the issue with the FTP client. 

In such a case, this seems to me to be a problem of FTP library we use in NetBeans (we use Apache Commons Net). Please, let me know if I am wrong.

Thanks for reporting and investigating this issue!