Comments (2)
I have more information about that problem. It happens only with a few ports actually for plain FTP.
In file .\src\NetBox\WinSCPDialogs.cpp
in function “TsessionDialog::TransferProtocolComboChange”
lines 2874-2880:
else if ((FSProtocol == fsFTP) && ((Ftps == ftpsNone) || (Ftps == ftpsExplicitSsl) || (Ftps == ftpsExplicitTls)))
{
if ((Port == SshPortNumber) || (Port == FtpsImplicitPortNumber) || (Port == HTTPPortNumber) || (Port == HTTPSPortNumber))
{
PortNumberEdit->SetAsInteger(FtpPortNumber);
}
}
So for plain FTP it sets default port 21 if user try to set any of 4 listed above ports.
As I know FTP can use any ports for it purpose and Filezilla Server allows that.
At my work only 80 and 443 ports are open and I cannot use USB sticks. So I use 443 for FTP transfer, maybe not a good idea as login/password in a plain text, but I transfer just work files anyway between my computers.
There are actually 2 problems here:
- Why are those TransferProtocolComboChange happens? For plain FTP it’s definitely incorrect, I’m not sure about other changes in this function. Most likely that code comes from somewhere else and probably not relevant anymore or incorrect in some parts (as for FTP, for instance)
Does anybody have knowledge about that?
- This function works incorrectly anyway: If user sets FTP port to 443, the FTP dialog sets and saves it in SessionData. In SessionData port is always correct and it’s always saved correctly. If user uses FTP session it connects with correct port number 443. But if user try to edit saved FTP session, it shows default port 21 as it set it in line 2878. At this point, if user press Esc, dialog will save existing port (443, for example, even if it shows port 21). But if user press Enter (Ok), port with change from 443 to 21. That is a bug with the whole function “TransferProtocolComboChange” with other changes too.
Any ideas about that?
from far-netbox.
Moved to michaellukashov#396
from far-netbox.
Related Issues (20)
- Slow downloading of a large number of files via ftp in the NetBox plugin. HOT 1
- PuTTY key generator PPK file version 3 support HOT 1
- [feature request] ~/.ssh/config file reading HOT 1
- Crash while attempting to change file attributes after editing HOT 4
- Abort timer countdown not work and always on 60 s HOT 2
- Can not connect to webdav.yandex.ru (YandexDisc) HOT 5
- Please add support for ed25519 keys HOT 4
- New features. Two-column panel. HOT 1
- Advanced compare by time not work anymore HOT 1
- Bug in display dialogs HOT 5
- RSA-SHA256 support HOT 1
- Unable to connect to Pure-FTPd with TLS enabled HOT 4
- NetBox/WebDav sometimes rejects valid SSL certificates HOT 1
- Daylight Saving Time bug HOT 3
- Unable to connect with private key certificates HOT 5
- FAR Manager crash after SSH chmod HOT 1
- Getting "; echo "NetBox: this is end-of-file:$?" in interactive bash shell HOT 1
- Some misaligned text in localization (for example russian) HOT 4
- Interface update required HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from far-netbox.