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

Issue 2608213002: Make FTP directory parser less strict (Closed)

Created:
3 years, 11 months ago by Jinsuk Kim
Modified:
3 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr.
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make FTP directory parser less strict FTP directory listing returns empty result if encoding detection or conversion fails. This CL puts less strict constraint on conversion so that the whole list can survive some filenames with broken chars and be shown to users. Other browsers seem to work this way. The broken chars can happen due to wrong encoding detection, which cannot be avoided 100%, as reported in the bug. BUG=676762 R=mmenke@chromium.org, phajdan.jr@chromium.org Review-Url: https://codereview.chromium.org/2608213002 . Cr-Commit-Position: refs/heads/master@{#441856} Committed: https://chromium.googlesource.com/chromium/src/+/ed3ef90ecc3c01246a3d838fbeefdab72c94c228

Patch Set 1 #

Patch Set 2 : add a test #

Total comments: 3

Patch Set 3 : substitute #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -2 lines) Patch
A net/data/ftp/dir-listing-ls-34 View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-ls-34.expected View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
Jinsuk Kim
3 years, 11 months ago (2017-01-04 00:19:38 UTC) #2
Paweł Hajdan Jr.
Sounds good. Could you please add a regression test for this? Landing binary files may ...
3 years, 11 months ago (2017-01-04 14:12:41 UTC) #3
Jinsuk Kim
On 2017/01/04 14:12:41, Paweł Hajdan Jr. wrote: > Sounds good. Could you please add a ...
3 years, 11 months ago (2017-01-05 00:16:38 UTC) #6
Jinsuk Kim
3 years, 11 months ago (2017-01-05 00:17:07 UTC) #8
mmenke
https://codereview.chromium.org/2608213002/diff/20001/net/ftp/ftp_directory_listing_parser.cc File net/ftp/ftp_directory_listing_parser.cc (right): https://codereview.chromium.org/2608213002/diff/20001/net/ftp/ftp_directory_listing_parser.cc#newcode94 net/ftp/ftp_directory_listing_parser.cc:94: base::OnStringConversionError::SKIP, Would SUBSTITUTE be better, so we display a ...
3 years, 11 months ago (2017-01-05 00:20:54 UTC) #9
Jinsuk Kim
https://codereview.chromium.org/2608213002/diff/20001/net/ftp/ftp_directory_listing_parser.cc File net/ftp/ftp_directory_listing_parser.cc (right): https://codereview.chromium.org/2608213002/diff/20001/net/ftp/ftp_directory_listing_parser.cc#newcode94 net/ftp/ftp_directory_listing_parser.cc:94: base::OnStringConversionError::SKIP, On 2017/01/05 00:20:53, mmenke wrote: > Would SUBSTITUTE ...
3 years, 11 months ago (2017-01-05 00:25:39 UTC) #10
Jinsuk Kim
https://codereview.chromium.org/2608213002/diff/20001/net/ftp/ftp_directory_listing_parser.cc File net/ftp/ftp_directory_listing_parser.cc (right): https://codereview.chromium.org/2608213002/diff/20001/net/ftp/ftp_directory_listing_parser.cc#newcode94 net/ftp/ftp_directory_listing_parser.cc:94: base::OnStringConversionError::SKIP, On 2017/01/05 00:25:39, Jinsuk Kim wrote: > On ...
3 years, 11 months ago (2017-01-05 00:45:28 UTC) #11
Paweł Hajdan Jr.
LGTM
3 years, 11 months ago (2017-01-05 15:50:22 UTC) #12
mmenke
LGTM as well. Thanks for taking the time to investigate using substitution!
3 years, 11 months ago (2017-01-05 16:03:04 UTC) #13
Jinsuk Kim
Committed patchset #3 (id:40001) manually as ed3ef90ecc3c01246a3d838fbeefdab72c94c228 (presubmit successful).
3 years, 11 months ago (2017-01-06 02:57:12 UTC) #15
loyso (OOO)
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2614103002/ by loyso@chromium.org. ...
3 years, 11 months ago (2017-01-06 03:57:29 UTC) #16
loyso (OOO)
Public link: https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%281%29/builds/62042
3 years, 11 months ago (2017-01-06 03:58:30 UTC) #17
findit-for-me
3 years, 11 months ago (2017-01-06 04:00:43 UTC) #18
Message was sent while issue was closed.
FYI: Findit identified this CL at revision 441856 as the culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698