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

Issue 449011: Make new FTP LIST parsing code more robust. (Closed)

Created:
11 years ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
Reviewers:
eroman, wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Make new FTP LIST parsing code more robust. Some highlights: - more tests (including non-ASCII characters in different encodings) - handling more variants of "ls" listing - handling spaces in file names in "ls" listings TEST=Covered by net_unittests. BUG=25520 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33688

Patch Set 1 #

Total comments: 5

Patch Set 2 : review fixes #

Total comments: 5

Patch Set 3 : fixes for wtc's comments #

Total comments: 5

Patch Set 4 : more fixes #

Patch Set 5 : comments #

Total comments: 4

Patch Set 6 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -15 lines) Patch
A net/data/ftp/dir-listing-ls-10 View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-10.expected View 1 chunk +80 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-6 View 1 chunk +7 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-6.expected View 1 chunk +53 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-7 View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-7.expected View 1 2 3 4 5 1 chunk +53 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-8 View 1 chunk +1 line, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-8.expected View 0 chunks +-1 lines, --1 lines 0 comments Download
A net/data/ftp/dir-listing-ls-9 View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-9.expected View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-vms-5 View 1 chunk +12 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-vms-5.expected View 1 chunk +36 lines, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_buffer_unittest.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_parsers.cc View 1 2 3 4 5 6 chunks +83 lines, -16 lines 0 comments Download
M net/ftp/ftp_directory_listing_parsers_unittest.cc View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Paweł Hajdan Jr.
This patch is a result of extensive testing in the field. I have even more ...
11 years ago (2009-11-30 10:33:00 UTC) #1
eroman
http://codereview.chromium.org/449011/diff/1/15 File net/ftp/ftp_directory_listing_parsers.cc (right): http://codereview.chromium.org/449011/diff/1/15#newcode18 net/ftp/ftp_directory_listing_parsers.cc:18: text[2] == '-' || (text[2] == 't' && last))); ...
11 years ago (2009-11-30 19:21:48 UTC) #2
Paweł Hajdan Jr.
On 2009/11/30 19:21:48, eroman wrote: > http://codereview.chromium.org/449011/diff/1/15 > File net/ftp/ftp_directory_listing_parsers.cc (right): > > http://codereview.chromium.org/449011/diff/1/15#newcode18 > ...
11 years ago (2009-11-30 20:22:19 UTC) #3
wtc
Hi Pawel, I have some review comments below. I only did a cursive review of ...
11 years ago (2009-11-30 20:42:17 UTC) #4
Paweł Hajdan Jr.
On 2009/11/30 20:42:17, wtc wrote: > I have some review comments below. I only did ...
11 years ago (2009-12-01 09:39:11 UTC) #5
Paweł Hajdan Jr.
eroman: ping
11 years ago (2009-12-01 20:53:14 UTC) #6
wtc
http://codereview.chromium.org/449011/diff/3002/5014 File net/ftp/ftp_directory_listing_parsers.cc (right): http://codereview.chromium.org/449011/diff/3002/5014#newcode15 net/ftp/ftp_directory_listing_parsers.cc:15: // Meaning of the flags reference: Nit: remove "reference"? ...
11 years ago (2009-12-01 23:29:55 UTC) #7
Paweł Hajdan Jr.
On 2009/12/01 23:29:55, wtc wrote: > http://codereview.chromium.org/449011/diff/3002/5014 > File net/ftp/ftp_directory_listing_parsers.cc (right): > > http://codereview.chromium.org/449011/diff/3002/5014#newcode15 > ...
11 years ago (2009-12-02 18:11:41 UTC) #8
wtc
Note: eroman is taking today off. I'll try to review this CL today. http://codereview.chromium.org/449011/diff/3002/5014 File ...
11 years ago (2009-12-02 19:43:59 UTC) #9
Paweł Hajdan Jr.
> Thanks for explaining this. This is not obvious at all. > I encourage you ...
11 years ago (2009-12-02 20:02:21 UTC) #10
wtc
LGTM. http://codereview.chromium.org/449011/diff/7019/8014 File net/ftp/ftp_directory_listing_parsers.cc (right): http://codereview.chromium.org/449011/diff/7019/8014#newcode54 net/ftp/ftp_directory_listing_parsers.cc:54: if (text[i - 1] != ' ' && ...
11 years ago (2009-12-03 00:23:08 UTC) #11
Paweł Hajdan Jr.
On 2009/12/03 00:23:08, wtc wrote: > LGTM. I'll wait for eroman's review as well, see ...
11 years ago (2009-12-03 11:37:22 UTC) #12
wtc
Pawel: I reviewed your entire CL yesterday, so you can commit it without waiting for ...
11 years ago (2009-12-03 16:07:15 UTC) #13
Paweł Hajdan Jr.
11 years ago (2009-12-03 16:14:26 UTC) #14
Landing then.

eroman, if you have any comments, I'm going to address them in a follow-up CL,
after I split the parsers file.

Powered by Google App Engine
This is Rietveld 408576698