Red Hat Bugzilla – Bug 244681
yum does not handle the url with spaces
Last modified: 2014-01-21 17:58:36 EST
Description of problem:
Setting baseurl to something like this:
baseurl=file:///media/Fedora 7 i386 DVD
and using yum results in error.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Default-mount installation DVD to /media/Fedora 7 i386 DVD
2. Add this path to any repo config as baseurl
3. Try yum install whatever
# yum install kdebase
Loading "installonlyn" plugin
Options Error: Error parsing 'file:///media/Fedora 7 i386 DVD': URL must be
http, ftp, file or https not ""
'not ""' is misleading when yum itself says this message.
Yum should either accept at least shell escape space or convert spaces to %20.
Workaround is to put in the path %20 instead of spaces.
that workaround is the right thing to do. The quotes aren't handled in our
config tool at all.