Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1150)

Issue 2813044: FTP: change order of commands to improve compatibility (Closed)

Created:
10 years, 5 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

FTP: change order of commands to improve compatibility It turns out some FTP servers react strangely to a RETR for an unexistent file. They send a success reponse followed by a failure response. The solution is to move the file/directory sniffing logic from RETR earlier, to SIZE. BUG=44582 TEST=net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51866

Patch Set 1 #

Total comments: 2

Patch Set 2 : fixes #

Patch Set 3 : simplified #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -199 lines) Patch
M net/ftp/ftp_network_transaction.h View 1 2 3 chunks +0 lines, -4 lines 0 comments Download
M net/ftp/ftp_network_transaction.cc View 1 2 5 chunks +14 lines, -43 lines 1 comment Download
M net/ftp/ftp_network_transaction_unittest.cc View 1 2 18 chunks +37 lines, -152 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Paweł Hajdan Jr.
10 years, 5 months ago (2010-07-02 10:37:04 UTC) #1
eroman
http://codereview.chromium.org/2813044/diff/1/2 File net/ftp/ftp_network_transaction.cc (right): http://codereview.chromium.org/2813044/diff/1/2#newcode839 net/ftp/ftp_network_transaction.cc:839: if (resource_type_ == RESOURCE_TYPE_DIRECTORY) Why does the resource type ...
10 years, 5 months ago (2010-07-02 18:28:06 UTC) #2
Paweł Hajdan Jr.
Patch updated, please take another look. http://codereview.chromium.org/2813044/diff/1/2 File net/ftp/ftp_network_transaction.cc (right): http://codereview.chromium.org/2813044/diff/1/2#newcode839 net/ftp/ftp_network_transaction.cc:839: if (resource_type_ == ...
10 years, 5 months ago (2010-07-05 11:29:23 UTC) #3
Paweł Hajdan Jr.
ping
10 years, 5 months ago (2010-07-06 11:45:20 UTC) #4
Paweł Hajdan Jr.
+cbentzel, willchan Could you take a look? eroman and wtc seem to be busy. Let ...
10 years, 5 months ago (2010-07-07 06:02:57 UTC) #5
cbentzel
I'm sheriff today but I'll try to take a look in between fighting fires. On ...
10 years, 5 months ago (2010-07-07 11:57:00 UTC) #6
willchan no longer on Chromium
Pawel: Monday and Tuesday were both holidays (4th of July weekend), so that's why Eric ...
10 years, 5 months ago (2010-07-07 14:10:49 UTC) #7
cbentzel
Took a quick look - I would like this to be split up as you ...
10 years, 5 months ago (2010-07-07 15:01:06 UTC) #8
Paweł Hajdan Jr.
Okay, this is about 30% smaller after removing the cleanup changes. This is already changing ...
10 years, 5 months ago (2010-07-07 17:58:48 UTC) #9
eroman
LGTM. Will is correct -- I was gone on vacation monday and tuesday, or I ...
10 years, 5 months ago (2010-07-07 23:26:39 UTC) #10
wtc
10 years, 5 months ago (2010-07-07 23:52:46 UTC) #11
I only reviewed your changes to ftp_network_transaction.{h,cc}.
They Look Good To Me.

I don't understand your changes to ftp_network_transaction_unittest.cc
related to PRE_PASV2 and PRE_EPSV2.  Hopefully eroman reviewed those
changes.

http://codereview.chromium.org/2813044/diff/12001/13001
File net/ftp/ftp_network_transaction.cc (right):

http://codereview.chromium.org/2813044/diff/12001/13001#newcode1006
net/ftp/ftp_network_transaction.cc:1006: return Stop(ERR_FAILED);
Nit: Can we return a better error code than ERR_FAILED here?

Powered by Google App Engine
This is Rietveld 408576698