Bug 241358

Summary: ftp install fails when trying to download rpm files, adds /%2F to the start of ftp pathname
Product: [Fedora] Fedora Reporter: Alexander Boström <abo>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-26 14:18:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexander Boström 2007-05-25 13:14:28 UTC
Description of problem:
When installing from FTP, via boot.iso, installation fails when trying to
download oprofile-gui-0.9.2-8.fc7.i386.rpm, and the path seems to be mangled.

Version-Release number of selected component (if applicable):
boot.iso with sha1sum:
55328977200b826ce8ff64c18ac2c1b120633901  boot.iso
Contents of download.fedora.redhat.com as of around Fri May 25 14:30 CEST 2007 =
Fri May 25 08:30 EDT 2007.

How reproducible:
Always.

Steps to Reproduce:
1. Boot machine (I'm using VMware Server here) on boot.iso.
2. Install in English, sv-latin1 keyboard, FTP.
3. Using server: download.fedora.redhat.com and path:
pub/fedora/linux/core/development/i386/os (note no slash before pub)
4. Deselect Office productivity, select Software development.
5. root password etc, nextnextnext...
  
Actual results:
Get dialog:
The file oprofile-gui-0.9.2-8.fc7.i386.rpm cannot be opened. This is due to a
missing file or perhaps a corrupt package. [...]

On VT 3:
WARNING : Failed to get
ftp://download.fedora.redhat.com/%2F/pub/fedora/linux/core/development/i386/os/Fedora/oprofile-gui-0.9.2-8.fc7.i386.rpm
from mirror 1/1.

Expected results:
Install without error.

Additional info:
In VMware, on IPv4 (publicly routable) and IPv6 enabled networks.

Comment 1 Alexander Boström 2007-05-25 14:12:32 UTC
HTTP install seems to work.

Comment 2 David Cantrell 2007-07-26 14:18:58 UTC
FTP installs are working fine in rawhide.  Just tested using your reproducer. 
In urlinstall.py, we have this code:

        if scheme == "ftp" and path and path.startswith("//"):
            path = "/%2F" + path[1:]

So the %2F element is added only if your path starts with two slashes.  We have
to add that for escaping in the FTP protocol.

Thanks for the report.