Ground control does not work behind proxies

Bug #520552 reported by Stephen Boddy
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ground Control
In Progress

Bug Description

Ground Control does not work behind a proxy.

The software does not take advantage of env vars, gconf, of private config.
(ideal order of preference: env var, private config (needed?), then gconf.

I have gotten parts to work with a couple of minor changes, but this is multipart problem.
1) Need to determine proxy, and place somewhere (easy)
2) Pass this proxy to httplib2 objects (easy)
3) I think xmlrpc calls from bzr/launchpad libs need to be use a subclassed transport to work through a proxy (tricky)
4) Need to be able to access via ssh (easy - I use ssh port forwards, and an entry in .ssh/config)

Once these are done I think Ground Control will work through a proxy.

I'm going to try and fix this myself.

Changed in groundcontrol:
assignee: nobody → Stephen Boddy (stephen-j-boddy)
status: New → In Progress
Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

Just to document:
1) (proxy determination) is done and working for env vars for both http and socks proxies.
2) Works, but httplib2 has a bug in 0.4 (karmic) that prevents the SSL connection for authorization. I patched it manually, but otherwise 0.5 or greater is needed. Lucid comes with 0.6. (see for more info)
3) This looks quite complicated. It is noted as fixed in bzr 2.1. In karmic we have 2.0, and I'm not sure I want to make such a significant update to my work system. (Outstanding based on what I looked at is if this will work over a socks proxy.)
4) This will always be a manual change on a per environment basis.

So what works from behind a proxy? I can authenticate, fetch a project, search for bugs. I can't checkout a branch because the lp:project_name lookup seems to be using the xmlrpc stuff first to get a proper bzr+ssh://... link. I haven't tested committing changes yet, but as it uses the bzr+ssh://... link, I think it will work without problem.

No point in merging this till after lucid as it will be confusing when it doesn't fully work.

Revision history for this message
Martin Owens (doctormo) wrote :

I had a look at the code, it looks like your doing a really good job here.

Changed in groundcontrol:
importance: Undecided → Wishlist
Changed in groundcontrol:
assignee: Stephen Boddy (stephen-j-boddy) → nobody
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.