Error when FTP server have filename include β
Reported by
bhy...@gmail.com,
Nov 13 2016
|
|||||||
Issue descriptionChrome Version : 55.0.2883.44 (正式版本) beta (64 位) URLs (if applicable) : ftp://catandmouse1.vicp.cc Other browsers tested: IE: OK 11.447.14393.0 Edge: OK 38.14393.0.0 What steps will reproduce the problem? (1) Access ftp://catandmouse1.vicp.cc What is the expected result? Display FTP content normally. What happens instead? Didn't display FTP file but display header normally. Please provide any additional information below. Attach a screenshot if possible.
,
Nov 14 2016
Unable to access the link provided in original comment, It displays error saying "This site can't be reached". bhyfor@ Could you please provide a different link or minimal test case of this issue for further triaging. Thanks!
,
Nov 14 2016
I think Google IP is blackholed by China GFW. Please just use a ProXY XD I don't have Windows IIS FTP Server out of China. This site have passed test on https://ftptest.net/
,
Nov 14 2016
I make a port forward on my VPS. Please try this: ftp://133.130.114.200 Thanks!
,
Nov 14 2016
nope that address seems doesn't work. I'll fix it soon
,
Nov 16 2016
,
Nov 16 2016
Not sure there's anything we can do here. There's no way to tell what character encoding the FTP server is using. Doesn't look to be UTF8, and figuring out an arbitrary character encoding definitely doesn't seem worth the effort (And is error prone).
,
Nov 16 2016
Notepad++ says it's ANSI encode, and Notepad++ display the list normally. FTP server is Windows IIS Ver 10.0.14393.0
,
Nov 16 2016
I don't think we want to assume we're getting Windows-1252 directory listings, anymore than we want to assume UTF-8.
,
Nov 18 2016
What is the filename that you expect? What is your local encoding? The FTP response doesn't describe the encoding, so we use base::DetectEncoding(), which wasn't able to figure it out. Looking at the bytes: d2 bb 92 6b b1 cb c5 ae 20 bc d3 cc d9 90 7b 20 a6 c2 b0 e6 5f 62 65 74 61 5f 31 2e 30 2e 30 2e 61 70 6b Not sure what encoding that is either. I tried Windows-1252 but that doesn't give any β...
,
Nov 18 2016
file name: 一択彼女 加藤恵 β版_beta_1.0.0.apk in my Notepad++: (file)
,
Nov 18 2016
Since that's Japanese, I guess it's most likely either EUC-JP or Shift-JIS. Regardless, we don't have any deterministic way to detect that.
,
Nov 25 2016
Thank you for providing more feedback. Adding requester "brajkumar@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Dec 1 2016
As per comment #12 removing myself from owners list.
,
Dec 21 2016
,
Apr 18 2017
In content/child/ftp_directory_listing_response_delegate.cc, ConvertPathToUTF16() says: // Per RFC 2640, FTP servers should use UTF-8 or its proper subset ASCII, // but many old FTP servers use legacy encodings. Try UTF-8 first. The RFC is from 1999. Why are there even modern FTP servers not following the RFC?
,
Apr 18 2018
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by bhy...@gmail.com
, Nov 13 2016