Closed Bug 1391651 Opened 7 years ago Closed 2 years ago

http doesn't redirect to ftp through proxy

Categories

(Core :: Networking: HTTP, defect, P3)

55 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: vinicios.portella, Unassigned)

Details

(Whiteboard: [necko-backlog])

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0
Build ID: 20170814072924

Steps to reproduce:

Trying to access this URL (http://servicodados.ibge.gov.br/Download/Download.ashx?u=geoftp.ibge.gov.br/informacoes_ambientais/acervo_radambrasil/leia-me.txt) through HTTP 1.1 proxys does not open the file.

I actually went to investigate with Wireshark what happens and it seems Firefox does not redirect to the FTP address found on the Location header. It opens the connection with the proxy but doesn't send the GET request to it, just leaves the connection open. The same request works fine on Internet Explorer 11 and Google Chrome 60.


Actual results:

The tab doesn't open the destination file on ftp. The browser doesn't seem to be redirecting the link. I thought the problem might be because Firefox redirect protection, but disabling it in the Options -> Advanced menu didn't change anything.

If I copy the destination FTP URL (ftp://geoftp.ibge.gov.br/informacoes_ambientais/acervo_radambrasil/leia-me.txt) and paste directly on the browser, it works fine.


Expected results:

The browser should redirect from http to ftp as specified in the location header.
Component: Untriaged → Networking: HTTP
Product: Firefox → Core
Patrick, I'm not even sure this (cross-protocol redirect) is something we would want to support. Thoughts?
Flags: needinfo?(mcmanus)
Just to note that it works fine on a network without proxy. In that case it uses the FTP protocol after the redirect as expected. So it already supports cross-protocol redirects, except when using a proxy.
this is backlog material.. we're wrong - low impact.
Flags: needinfo?(mcmanus)
(In reply to Nicholas Hurley [:nwgh][:hurley] (also hurley@todesschaf.org) from comment #1)
> Patrick, I'm not even sure this (cross-protocol redirect) is something we
> would want to support. Thoughts?

Oh, we definitely do and want.  FTP is somewhat unsupported tho, so that we can soon end up w/o any native FTP support in Fx.
Whiteboard: [necko-backlog]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3

This bug is still present on version 60.5.0esr (OpenSUSE Linux, 64bit)

Other example URLs:

Both URLs above stop working when a proxy server is set.

Is this bug still relevant since there is no support fpr ftp anymore or can it be closed?

Flags: needinfo?(vinicios.portella)

I can't test the original URL, since it doesn't exist anymore, but I tested both Arrigo Marchiori URLs in Firefox 95.0.2 and they redirected to be open in my FTP client without a problem. It should be safe to close.

Flags: needinfo?(vinicios.portella)

Same for me. I close it. Thank you!

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.