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

Issue 472003: Compatibility updates for "ls -l" style FTP LIST response parser: (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

Compatibility updates for "ls -l" style FTP LIST response parser: - recognize permission listing with ACL indicator as valid - add one more test for non-ASCII encoding TEST=Covered by net_unittests. BUG=25520 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34240

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix a bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -2 lines) Patch
A net/data/ftp/dir-listing-ls-15 View 1 chunk +5 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-15.expected View 1 chunk +35 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-16 View 1 1 chunk +7 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-16.expected View 1 1 chunk +62 lines, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_buffer_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_ls.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_ls_unittest.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Paweł Hajdan Jr.
11 years ago (2009-12-09 17:04:15 UTC) #1
eroman
lgtm
11 years ago (2009-12-09 22:11:38 UTC) #2
wtc
http://codereview.chromium.org/472003/diff/1/7 File net/ftp/ftp_directory_listing_parser_ls.cc (right): http://codereview.chromium.org/472003/diff/1/7#newcode42 net/ftp/ftp_directory_listing_parser_ls.cc:42: text.substr(10).empty() || text.substr(10) == ASCIIToUTF16("+")); Do you need parentheses ...
11 years ago (2009-12-09 23:02:15 UTC) #3
Paweł Hajdan Jr.
11 years ago (2009-12-10 07:50:40 UTC) #4
On 2009/12/09 23:02:15, wtc wrote:
> http://codereview.chromium.org/472003/diff/1/7
> File net/ftp/ftp_directory_listing_parser_ls.cc (right):
> 
> http://codereview.chromium.org/472003/diff/1/7#newcode42
> net/ftp/ftp_directory_listing_parser_ls.cc:42: text.substr(10).empty() ||
> text.substr(10) == ASCIIToUTF16("+"));
> Do you need parentheses around
>   text.substr(10).empty() || text.substr(10) == ASCIIToUTF16("+")
> ?
> 
> && has a higher precedence than ||.

Indeed, thanks for catching that. I added a test case for that bug and committed
the patch.

Powered by Google App Engine
This is Rietveld 408576698