Description of problem: Enabling repo on satellite 6.7 fails with " 407 Proxy Auth Required " in spite of having correct proxy details set on satellite. Manifest refresh, insights, repo sync works fine but enabling a repo fails. In the file /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.14.0.20/app/lib/katello/resources/cdn.rb def net_http_class if (proxy = ::HttpProxy.default_global_content_proxy) uri = URI(proxy.url) #Net::HTTP::Proxy ignores port as part of the url Net::HTTP::Proxy("#{uri.host}#{uri.path}", uri.port, proxy.username, proxy.password) else Net::HTTP end end proxy.username here returns empty '', instead of nil which is causing the issue for the customer. [17:45:44] mjia: proxy = ::HttpProxy.default_global_content_proxy [17:45:44] mjia: => #<HttpProxy id: 2, name: "Local CNTLM instance", url: "https://10.10.10.10", username: "", password: ""> [17:45:44] mjia: irb(main):002:0> proxy.username [17:45:44] mjia: => "" This seems like a regression as 6.6 seems like using nil for proxy.username. Below workaround fixed the issue: # foreman-rake console proxy = ::HttpProxy.default_global_content_proxy proxy.update_attributes!(username: nil, password: nil) exit Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Hi, I'm closing the BZ since the 6.7 version is past its support, if you are able to reproduce the issue on the latest version (6.13) please reopen the BZ with updated steps to reproduce and debug logs.