#3610 download.fedoraproject.org 302 Returns ftp:// causing Issues with HTTP Clients
Closed: Fixed None Opened 11 years ago by jsteffan.

http://download.fedoraproject.org/ 302 redirects return ftp:// sources which causes issues with some http clients. My specific issue is with ipxe and dracut (curl). ipxe seems to not support this. dracut's curl calls need to be confirmed it is doing follows, but it looks like it might correctly follow. $ curl -v http://localhost:1234 * About to connect() to localhost port 1234 (#0) * Trying ::1... * Connection refused * Trying 127.0.0.1... * connected * Connected to localhost (127.0.0.1) port 1234 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.24.0 (x86_64-redhat-linux-gnu) libcurl/7.24.0 NSS/3.13.5.0 zlib/1.2.5 libidn/1.24 libssh2/1.4.1 > Host: localhost:1234 > Accept: */* > * HTTP 1.0, assume close after body < HTTP/1.0 302 Found < Server: BaseHTTP/0.3 Python/2.7.3 < Date: Sun, 30 Dec 2012 03:56:14 GMT < Location: ftp://mirror.anl.gov/pub/fedora/linux/releases/SYNC_STAMP.txt * Closing connection #0 $ curl -vL http://localhost:1234 * About to connect() to localhost port 1234 (#0) * Trying ::1... * Connection refused * Trying 127.0.0.1... * connected * Connected to localhost (127.0.0.1) port 1234 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.24.0 (x86_64-redhat-linux-gnu) libcurl/7.24.0 NSS/3.13.5.0 zlib/1.2.5 libidn/1.24 libssh2/1.4.1 > Host: localhost:1234 > Accept: */* > * HTTP 1.0, assume close after body < HTTP/1.0 302 Found < Server: BaseHTTP/0.3 Python/2.7.3 < Date: Sun, 30 Dec 2012 03:56:32 GMT < Location: ftp://mirror.anl.gov/pub/fedora/linux/releases/SYNC_STAMP.txt * Closing connection #0 * Issue another request to this URL: 'ftp://mirror.anl.gov/pub/fedora/linux/releases/SYNC_STAMP.txt' * About to connect() to mirror.anl.gov port 21 (#0) * Trying 146.137.96.7... * connected * Connected to mirror.anl.gov (146.137.96.7) port 21 (#0) < 220- --------------------------------------------------------------------------- < 220- Notice to Users < 220- < 220-This is a Federal computer system and is the property of the United States < 220-Government. It is for authorized use only. Users (authorized or unauthorized) < 220-have no explicit or implicit expectation of privacy. < 220- < 220-Any or all uses of this system and all files on this system may be intercepted, < 220-monitored, recorded, copied, audited, inspected, and disclosed to authorized < 220-site, Department of Energy, and law enforcement personnel, as well as < 220-authorized officials of other agencies, both domestic and foreign. By using < 220-this system, the user consents to such interception, monitoring, recording, < 220-copying, auditing, inspection, and disclosure at the discretion of authorized < 220-site or Department of Energy personnel. < 220- < 220-Unauthorized or improper use of this system may result in administrative < 220-disciplinary action and civil and criminal penalties. By continuing to use < 220-this system you indicate your awareness of and consent to these terms and < 220-conditions of use. LOG OFF IMMEDIATELY if you do not agree to the conditions < 220-stated in this warning. < 220- < 220- ---------------------------------------------------------------------------- < 220- < 220-The administrators of this system may be reached at: mirror-admins@lists.anl.gov < 220 > USER anonymous < 331 Please specify the password. > PASS ftp@example.com < 230 Login successful. > PWD < 257 "/" * Entry path is '/' > CWD pub < 250 Directory successfully changed. > CWD fedora < 250 Directory successfully changed. > CWD linux < 250 Directory successfully changed. > CWD releases < 250 Directory successfully changed. > EPSV * Connect data stream passively < 229 Entering Extended Passive Mode (|||58273|). * Trying 146.137.96.7... * connected * Connecting to 146.137.96.7 (146.137.96.7) port 58273 > TYPE I < 200 Switching to Binary mode. > SIZE SYNC_STAMP.txt < 213 79 > RETR SYNC_STAMP.txt < 150 Opening BINARY mode data connection for SYNC_STAMP.txt (79 bytes). * Maxdownload = -1 * Getting file with size: 79 Last update succeeded on fruitfly.it.anl.gov at: Sat Dec 29 20:12:24 CST 2012 * Remembering we are in dir "pub/fedora/linux/releases/" < 226 Transfer complete. * Connection #0 to host mirror.anl.gov left intact > QUIT < 221 Goodbye. * Closing connection #0 Attached is a simple python server to reproduce 302 ftp:// Locations.

I suppose this request is to make it so that http://download.fedoraproject.org/ 302 responses don't return ftp:// Locations to prevent issues with HTTP clients not doing the right thing(tm).

this is still open in MM 1.4.0.

I fixed this in mirrormanager upstream now; after 1.4.3 which is in production now. I'll pick this up in the next production push, after the holidays.

Thanks,
Matt

This should be all gone in mm2 also...

Please re-open if you see it again.

Login to comment on this ticket.

Metadata