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

Issue 5669001: FTP: fix compatibility problems with MLSD by removing MLSD support. (Closed)

Created:
10 years 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: fix compatibility problems with MLSD by removing MLSD support. Some FTP servers send MLSD listings with no facts, just the file names. This is a valid RFC-3659 listing, but is useless for web browsers. In theory we could check whether a server advertises MLSD support in FEAT response, or use LIST when MLSD only returns file names, but the extra complexity is not worth it. All servers supporting MLSD must also support LIST, so this should not regress compatibility. This change also removes the "HPRC" directory listing parser. Actually, it was just MLSD listing with no facts. BUG=65328, 65584 TEST=net_unittests, also see the bugs Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68859

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -633 lines) Patch
D net/data/ftp/dir-listing-hprc-1 View 1 chunk +0 lines, -2 lines 0 comments Download
D net/data/ftp/dir-listing-hprc-1.expected View 1 chunk +0 lines, -17 lines 0 comments Download
D net/data/ftp/dir-listing-hprc-2 View 1 chunk +0 lines, -4 lines 0 comments Download
D net/data/ftp/dir-listing-hprc-2.expected View 1 chunk +0 lines, -35 lines 0 comments Download
D net/data/ftp/dir-listing-hprc-3 View 1 chunk +0 lines, -3 lines 0 comments Download
D net/data/ftp/dir-listing-hprc-3.expected View 1 chunk +0 lines, -26 lines 0 comments Download
D net/data/ftp/dir-listing-mlsd-1 View 1 chunk +0 lines, -5 lines 0 comments Download
D net/data/ftp/dir-listing-mlsd-1.expected View 1 chunk +0 lines, -44 lines 0 comments Download
D net/data/ftp/dir-listing-mlsd-2 View 1 chunk +0 lines, -1 line 0 comments Download
D net/data/ftp/dir-listing-mlsd-2.expected View 1 chunk +0 lines, -8 lines 0 comments Download
M net/ftp/ftp_directory_listing_buffer.cc View 2 chunks +0 lines, -4 lines 0 comments Download
M net/ftp/ftp_directory_listing_buffer_unittest.cc View 2 chunks +0 lines, -5 lines 0 comments Download
D net/ftp/ftp_directory_listing_parser_hprc.h View 1 chunk +0 lines, -46 lines 0 comments Download
D net/ftp/ftp_directory_listing_parser_hprc.cc View 1 chunk +0 lines, -60 lines 0 comments Download
D net/ftp/ftp_directory_listing_parser_hprc_unittest.cc View 1 chunk +0 lines, -46 lines 0 comments Download
D net/ftp/ftp_directory_listing_parser_mlsd.h View 1 chunk +0 lines, -37 lines 0 comments Download
D net/ftp/ftp_directory_listing_parser_mlsd.cc View 1 chunk +0 lines, -142 lines 0 comments Download
D net/ftp/ftp_directory_listing_parser_mlsd_unittest.cc View 1 chunk +0 lines, -68 lines 0 comments Download
M net/ftp/ftp_network_transaction.h View 3 chunks +0 lines, -4 lines 0 comments Download
M net/ftp/ftp_network_transaction.cc View 5 chunks +1 line, -46 lines 0 comments Download
M net/ftp/ftp_network_transaction_unittest.cc View 5 chunks +3 lines, -22 lines 0 comments Download
M net/ftp/ftp_server_type_histograms.h View 1 chunk +2 lines, -2 lines 3 comments Download
M net/net.gyp View 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Paweł Hajdan Jr.
The change is really simple, just removing code.
10 years ago (2010-12-08 10:41:41 UTC) #1
wtc
I only reviewed the .h files, so please consider this a drive-by review. Please wait ...
10 years ago (2010-12-08 20:12:01 UTC) #2
jar (doing other things)
[per request for a drive by review on a tiny issue...] I agree with wtc's ...
10 years ago (2010-12-08 20:50:12 UTC) #3
Paweł Hajdan Jr.
I'd prefer to leave the enum as-is. If we add RESERVED entries for 13 and ...
10 years ago (2010-12-08 21:12:23 UTC) #4
wtc
http://codereview.chromium.org/5669001/diff/1/net/ftp/ftp_server_type_histograms.h File net/ftp/ftp_server_type_histograms.h (right): http://codereview.chromium.org/5669001/diff/1/net/ftp/ftp_server_type_histograms.h#newcode20 net/ftp/ftp_server_type_histograms.h:20: // Types 1-8 are RESERVED (were earlier used for ...
10 years ago (2010-12-08 22:04:56 UTC) #5
jar (doing other things)
As noted, if the issue is ONLY histograms, things will work perfectly with the NUM_OF_SERVER_TYPES ...
10 years ago (2010-12-08 22:54:30 UTC) #6
Paweł Hajdan Jr.
eroman: ping NUM_OF_SERVER_TYPES is only used for histograms, and is never used to record data.
10 years ago (2010-12-09 07:29:34 UTC) #7
eroman
10 years ago (2010-12-10 04:07:49 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698