-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yum configuration processing removes default port #36
Comments
@partyzan oh, good catch, thanks! Sure enough I never tested using the default http port.
Which distro and version are you using? |
I ran into this with CentOS 6.4, specifically the base box that Opscode builds. It also happens when overriding using the environment variables. The docs seem to indicate that its like this since at least CentOS 5. |
@johnbellone ok, thanks. I was secretly hoping it would have been fixed in some yum version. Still it should have been fixed on vagrant-proxyconf... I'm afraid we have to just add the port ourselves if URI won't add it. Feels dirty but it's simple anyway. Give me a shout if anyone wants to give it a try. Otherwise I'll try to find time soonish. |
I'll put up a patch. Give me a few minutes. |
@johnbellone awesome! No hurry, I won't have time to test it now anyway. =) |
I ran into this separately from issue tmatilai#36 but it boils down to two issues: * Implementation of URI::Generic#to_s omits the port if it equals to the default port value (doesn't matter scheme); * Yum proxy requires the TCP port value irregardless of if it is the default port or not. This would crop up with any software which required the TCP value to be explicit even know sane implementations would just assume a default value if one was omitted.
This should be fixed now in master. Thanks a lot to both of you! |
Wow that was a quick turnaround 👍 Thanks. |
FYI, v1.0.1 including the fix has been released. |
The following section in the Vagrant file :
Translates into the following entry in the yum.conf file
The result was no connection untill I have manually added the port to the yum.conf file.
Thanks
The text was updated successfully, but these errors were encountered: