-
Notifications
You must be signed in to change notification settings - Fork 308
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
Fix the interpretation of FTP URLs #263
base: master
Are you sure you want to change the base?
Conversation
This is definitely a breaking change, but it changes behaviour that is unexpected and inconsistent with other tools to how it should be.
@chris-morgan Thanks for the pull request! I don't know much about FTP -- can you point me to a spec, or a tool that uses FTP in the way that you describe? I want to test this change myself, and I'm not sure the best way to do so. Also, can you write an automated test for this? That way, whatever behavior Lektor ends up using, at least we can be consistent about it. (The tests also work as a form of documentation -- you can see how the FTP URL should be parsed!) |
Example: https://www.w3.org/Addressing/URL/4_1_FTP.html
i.e. a file path ftp://example.com/foo/bar/baz would be: connect to example.com, then CWD foo, CWD bar, RETR baz. Re. tests, there don’t seem to be any FTP tests at present; I imagine we’d need to include an FTP server and add FTP tests to tests/test_deploy.py. This shouldn’t be too tricky, but it sounds like a pain. If we don’t have any tests at present, I’m going to say we’re not actually adding new untested functionality, so no problem. I’m not going to implement it at present, so this can either languish until someone else gets annoyed by it and implements FTP publisher testing, or I get around to it (don’t be hopeful, sorry); or else be merged as is and leave the whole thing untested. |
FTP is insecure, does the project want to support that as a deployment method when rsync can use ssh and is simple to setup? |
|
To add to this... I am not very familiar with Windows, but, in trying to test I would like to be proven wrong on this — and I may well be. I was surprised to come to the conclusion that there is no great |
Note: |
This is definitely a breaking change, but it changes behaviour that is unexpected and inconsistent with other tools to how it should be.