Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-81403: Fix for CacheFTPHandler in urllib#13951
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
A call to FTP.ntransfercmd must be followed by FTP.voidresp to clearthe "end transfer" message. Without this, the client and server getout of sync, which will result in an error if the FTP instance isreused to open a second URL. This scenario occurs for even the mostbasic usage of CacheFTPHandler.Reverts the patch merged as a resolution to bpo-16270 and adds a testcase for the CacheFTPHandler in test_urllib2net.py.
the-knights-who-say-ni commentedJun 10, 2019
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed thePSF contributor agreement (CLA). Our records indicate we have not received your CLA. For legal reasons we need you to sign this before we can look at your contribution. Please followthe steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You cancheck yourself to see if the CLA has been received. Thanks again for your contribution, we look forward to reviewing it! |
bedevere-bot commentedApr 29, 2022
Every change to Pythonrequires a NEWS entry. Please, add it using theblurb_it Web app or theblurb command-line tool. |
bedevere-bot commentedApr 23, 2023
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
orsenthil commentedApr 23, 2023
This change looks good to me. This fell out of attention due to lack of news and I cannot edit this PR. I will merge this and make a minor change and NEWS as a separate PR commit. The NEWS entry I will add is
|
orsenthil left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM
arhadthedev commentedApr 23, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Maybe it's worth copying the issue text? Like:
|
orsenthil commentedApr 23, 2023
@arhadthedev - sounds good to me. |
arhadthedev commentedApr 23, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
It seemsautomerge was ignored. |
miss-islington commentedApr 23, 2023
Thanks@hemberger for the PR, and@orsenthil for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
bpo-37222: Fix for CacheFTPHandler in urllibA call to FTP.ntransfercmd must be followed by FTP.voidresp to clearthe "end transfer" message. Without this, the client and server getout of sync, which will result in an error if the FTP instance isreused to open a second URL. This scenario occurs for even the mostbasic usage of CacheFTPHandler.Reverts the patch merged as a resolution to bpo-16270 and adds a testcase for the CacheFTPHandler in test_urllib2net.py.(cherry picked from commite38bebb)Co-authored-by: Dan Hemberger <846186+hemberger@users.noreply.github.com>Co-authored-by: Senthil Kumaran <senthil@python.org>
bedevere-bot commentedApr 23, 2023
GH-103705 is a backport of this pull request to the3.11 branch. |
*gh-81403: Fix for CacheFTPHandler in urllib (GH-13951)bpo-37222: Fix for CacheFTPHandler in urllibA call to FTP.ntransfercmd must be followed by FTP.voidresp to clearthe "end transfer" message. Without this, the client and server getout of sync, which will result in an error if the FTP instance isreused to open a second URL. This scenario occurs for even the mostbasic usage of CacheFTPHandler.Reverts the patch merged as a resolution tobpo-16270 and adds a testcase for the CacheFTPHandler in test_urllib2net.py.(cherry picked from commite38bebb)Co-authored-by: Dan Hemberger <846186+hemberger@users.noreply.github.com>Co-authored-by: Senthil Kumaran <senthil@python.org>* Added NEWS entry.---------Co-authored-by: Dan Hemberger <846186+hemberger@users.noreply.github.com>Co-authored-by: Senthil Kumaran <senthil@python.org>
Uh oh!
There was an error while loading.Please reload this page.
A call to FTP.ntransfercmd must be followed by FTP.voidresp to clear
the "end transfer" message. Without this, the client and server get
out of sync, which will result in an error if the FTP instance is
reused to open a second URL. This scenario occurs for even the most
basic usage of CacheFTPHandler.
Reverts the patch merged as a resolution tobpo-16270 and adds a test
case for the CacheFTPHandler in test_urllib2net.py.
https://bugs.python.org/issue37222