New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 664821 link

Starred by 3 users

Issue metadata

Status: Archived
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Error when FTP server have filename include β

Reported by bhy...@gmail.com, Nov 13 2016

Issue description

Chrome 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.
 
无标题.png
8.5 KB View Download
catandmouse1.vicp.cc.txt
223 bytes View Download

Comment 1 by bhy...@gmail.com, Nov 13 2016

This problem also happen on my smart phone.
My smart phone:
Chrome 54.0.2840.85
Android 6.0.1; F8332 Build/39.0.A.1.250
Xperia XZ
Cc: brajkumar@chromium.org
Labels: Needs-Feedback
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!

Comment 3 by bhy...@gmail.com, 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/

Comment 4 by bhy...@gmail.com, Nov 14 2016

I make a port forward on my VPS.
Please try this: ftp://133.130.114.200
Thanks!

Comment 5 by bhy...@gmail.com, Nov 14 2016

nope that address seems doesn't work.
I'll fix it soon

Comment 6 by ajha@chromium.org, Nov 16 2016

Components: Internals>Network>FTP

Comment 7 by mmenke@chromium.org, 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).

Comment 8 by bhy...@gmail.com, 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

Comment 9 by mmenke@chromium.org, 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.
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 β...

Comment 11 by bhy...@gmail.com, Nov 18 2016

file name: 一択彼女 加藤恵 β版_beta_1.0.0.apk
in my Notepad++: (file)
screenshot.png
28.6 KB View Download
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.
Project Member

Comment 13 by sheriffbot@chromium.org, Nov 25 2016

Labels: -Needs-Feedback Needs-Review
Owner: brajkumar@chromium.org
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
Labels: -Needs-Review
Owner: ----
As per comment #12 removing myself from owners list.
Labels: TE-NeedsTriageHelp
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?
Project Member

Comment 17 by sheriffbot@chromium.org, Apr 18 2018

Status: Archived (was: Unconfirmed)
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