-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent EPSV return message format. #69
Comments
As RFC2428 said:
So, the format is strict and this server do not respect it. I don't know good enough solution for this right now. Do you have any ideas? |
@p4l1ly the message should be |
@rsichny I know. AFAIR the problem is not with |
@p4l1ly |
@pohmelie |
Yeah, it definitely looks like the server does not respect the standard. However, you might want to consider parsing the messages the same way as |
@p4l1ly bpython version 0.16 on top of Python 3.6.2 /home/broomrider/.pyenv/versions/3.6.2-kron/envs/packaging/bin/python
>>> import ftplib
>>> ftplib.parse229("229 foo bar ha-ha (|||666|)", ["localhost"])
('localhost', 666)
>>> ftplib.parse229("229 foo bar (ha-ha) (|||666|)", ["localhost"])
Traceback (most recent call last):
File "<input>", line 1, in <module>
ftplib.parse229("229 foo bar (ha-ha) (|||666|)", ["localhost"])
File "/home/broomrider/.pyenv/versions/3.6.2-kron/lib/python3.6/ftplib.py", line 870, in parse229
raise error_proto(resp)
ftplib.error_proto: 229 foo bar (ha-ha) (|||666|)
>>> More to say, as RFC said:
So, the |
I have run into the same issue with vsFTPd 2.2.2. Are there any plans to add leniency here? Thanks, |
@NickG123 |
@NickG123 |
Hi, you cannot rely on this format https://github.com/aio-libs/aioftp/blob/master/aioftp/client.py#L942
In my case I've got
' Entering Extended Passive Mode (|||50006|).'
and the period causes ValueError.The text was updated successfully, but these errors were encountered: