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 262317 - Attempting to ftp upload a project get the error Remote Connection: Port must be between 0 and 65535. even though port 21 is specified. Same project works in 8.1
Summary: Attempting to ftp upload a project get the error Remote Connection: Port mu...
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 10
: P3 normal with 1 vote (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-02 22:18 UTC by steeltoad
Modified: 2017-03-15 19:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (52.12 KB, text/plain)
2016-06-02 22:18 UTC, steeltoad
Details
FTP Upload - Remote Connection: Port must be between 0 and 65535 but ftp port is correct 21 (same on Mac OS) (22.93 KB, image/png)
2016-07-17 09:59 UTC, linkmatrix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description steeltoad 2016-06-02 22:18:28 UTC
Product Version = NetBeans IDE Dev (Build 201606020002)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

Reproducibility: Happens every time

STEPS:
 Attempt to upload or syncronize a project

ACTUAL:
   error - Remote Connection: Port must be between 0 and 65535.   even though port 21 is specified

I tried creating a new remote connection with it's own parameters and get the same erro
Comment 1 steeltoad 2016-06-02 22:18:31 UTC
Created attachment 159950 [details]
IDE log
Comment 2 linkmatrix 2016-07-17 09:59:21 UTC
Created attachment 160414 [details]
FTP Upload - Remote Connection: Port must be between 0 and 65535 but ftp port is correct 21 (same on Mac OS)

same error on my Mac OS 10.11.5 like already reported on Win 10 (see screenshot)
Comment 3 linkmatrix 2016-07-17 10:16:34 UTC
Comment on attachment 160414 [details]
FTP Upload - Remote Connection: Port must be between 0 and 65535 but ftp port is correct 21 (same on Mac OS)

Would love to use PHP 7 hinting in my PHP 7.0.8 projects in NB dev 8.2 but without FTP uploading refactoring does not work. So I can't test dev v8.2. Sorry that bug is a show stopper for me.
Comment 4 linkmatrix 2016-09-12 11:11:31 UTC
Found a solution. If you press button "Test Connection" its positive feedback, but still not uploading via FTP. But if you go to project property window and select "Run Configuration" an enter in field "Port Range:" 0 - 65535 is works fine. So this is not a bug, but it was not necessary in version 8.1 and should be given this values as default for convenience.
Comment 5 JanGen 2016-10-04 13:43:27 UTC
Workarounnd in #4 works, but still I consider this a bug.

Port range is under passive mode, and when passive mode is not checked it should not make a difference if it's empty.

You need to scroll down to see the port range fields, UI is a bit awkward here.
And at least test connection should give you a hint.
Comment 6 UserX 2017-03-15 19:13:07 UTC
Adding the port range under Passive Mode worked for me. Even though passive mode is not selected. Because it is not checked yet still required I would consider this a bug as well.