[master 4/11] Fix crash when user start typing proxy credentials

wgwoods installerbot-noreply at redhat.com
Wed Jul 22 21:32:48 UTC 2015


From: Jiri Konecny <jkonecny at redhat.com>

ProxyString object for parsing proxy was misused.
When using proxy with username the password is need too and reverse.
---
 pyanaconda/ui/gui/spokes/source.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 67bb344..fe423ea 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -1545,7 +1545,10 @@ def on_repoProxy_changed(self, *args):
             self._repoChecks[repo.repo_id].proxy_check.update_check_status()
 
         try:
-            proxy = ProxyString(url=url, username=username, password=password)
+            if username and password:
+                proxy = ProxyString(url=url, username=username, password=password)
+            else:
+                proxy = ProxyString(url=url)
             repo.proxy = proxy.url
         except ProxyStringError as e:
             log.error("Failed to parse proxy - %s:%s@%s: %s", username, password, url, e)


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/bf5c8c4e61f931b1de383273884cebb52ae8c901


More information about the anaconda-patches mailing list