Comments (6)
So it sounds like we need to send these commands when SSL is required?
PBSZ 0
PROT P
from ftp.
I think that's right, and much simpler.
PBSZ 0 seems a bit odd but the idea of the protected buffer doesn't make much sense with SSL.
from ftp.
There is a FtpSession.CheckProtection
invoked every time a data channel is created. I don't understand where it fails.
The method then uses FtpSession.CheckSessionParameter
, which tests two thinkgs:
- The
PROT
command is said to be supported by server (returned by reply toFEAT
command) - The
PROT
is invoked only once per connection.
And when reading this, I think that the point 2 may be the source of the problem.
from ftp.
The version 1.12 (just released) does PBSZ 0
before a PROT P
.
However I could not find documentation saying that these commands had to be sent everytime a protected data channel is created on the same connection (FtpSession
).
from ftp.
They should only be sent once per session.
I didn't realise setting State
had side effects.
I think the server I was using didn't report PROT
as a capability so no command was sent. Unfortunately I no longer have access to that server to test.
It might be worth sending PBSZ and PROT even if servers don't report the capability but not failing is they return errors.
Feel free to close as I can no longer test this.
from ftp.
I keep the issue open, and I'll add a flag to force PBSZ
/PROT
commands on server which don't explicitly say they are available.
from ftp.
Related Issues (20)
- Error parsing Modify fact of Mlsd HOT 1
- Download/Retr File HOT 5
- [Question] Resume File Download HOT 1
- FileZilla and STAT command HOT 3
- A call to SSPI failed HOT 24
- ThreadInterruptedException' in mscorlib.dll. Doesnt crash but dont know why it happens. HOT 6
- ArxOne.Ftp.Exceptions.FtpFileException: File error. Code=550 HOT 2
- FTPS with TLS not working HOT 4
- File Date parsing is wrong HOT 1
- Retrive .odt files HOT 2
- MVS-z/OS FTP server HOT 5
- error 230 on list HOT 2
- Connecting with ftp ends in 501 error HOT 6
- Make project compatible with .NET Standard HOT 16
- Package versioning is probably broken HOT 1
- Asynchronous API HOT 4
- library hits session limit on server where filezilla does not. HOT 2
- NuGet package publishing failed HOT 1
- Unix space quoting issues HOT 4
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 ftp.