fogger does not use the http_proxy and https_proxy environmental variables.

Bug #1022816 reported by Hennie Marais
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fogger
Fix Released
High
Owais Lone

Bug Description

I need to use a proxy at work, and the fogger doesn't use the proxy even though I've set http_proxy and https_proxy in /etc/environment. I managed to resolved this with the following changes to FoggerWindow.py:
186,189c186
< http_proxy = re.sub(r'http://', r'', os.getenv('http_proxy'))
< https_proxy = re.sub(r'https://', r'', os.getenv('https_proxy'))
< proxyDict = {'http' : http_proxy, 'https' : https_proxy}
< response = requests.get(url, proxies=proxyDict)
---
> response = requests.get(url)

Revision history for this message
Owais Lone (loneowais) wrote :

Thanks for reporting. As far as I can understand, this only affects the app creation window. Apps themselves work fine. Right?

Changed in fogger:
assignee: nobody → Owais Lone (loneowais)
importance: Undecided → High
status: New → Triaged
Revision history for this message
Hennie Marais (hennie-2) wrote :

Yes, that's it exactly. The app creation window complains and won't create any apps, but the apps work once created.

Revision history for this message
Owais Lone (loneowais) wrote :

I'll publish the fix once appshowdown is over. Thanks!

Owais Lone (loneowais)
Changed in fogger:
milestone: none → 0.2
Revision history for this message
Owais Lone (loneowais) wrote :

Committed. Pushing to PPA now. Will be marked as released once version 0.2 hits Software Center

Changed in fogger:
status: Triaged → Fix Committed
Revision history for this message
Owais Lone (loneowais) wrote :

Rev: 165

Revision history for this message
Owais Lone (loneowais) wrote :

Ooops.. fixed the typos.

Owais Lone (loneowais)
Changed in fogger:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.