unique user agent

Bug #243767 reported by Brian Murray
2
Affects Status Importance Assigned to Milestone
Leonov
Fix Released
Wishlist
Unassigned

Bug Description

I'm not certain if the this doesn't exit but if it doesn't then it should! There have been some issues in the past with bughelper and python-launchpad-bug users causing some excessive load on Launchpad. A couple of things we have done is implement unique useragents for each application and there is now or will be soon the possibility to identify yourself in the user agent string. This will allow Launchpad admins to quickly contact us in the event there is a problem. I'd appreciate it if Leonov had at least a unique useragent. Thanks!

Revision history for this message
Stephan Rügamer (sruegamer) wrote :

Hi Brian,

if you tell me how to change the version string in launchpadbugs.http_connection, then this is no problem...
anyways...right now, leonov is just a querying tool, with less features...so it shouldn't be a problem
I'll talk to Markus about that on monday.

\sh

Changed in leonov:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Markus Korn (thekorn) wrote :

With revision 143 of the intrepid.merge branch there are two possibilities to add a username to the user-agent header:

1.) using a global config-file:
      echo myusername > ~/.python-launchpad-bugs.conf
   this will generate a user-agent header like:
      python-launchpad-bugs/0.2.33 (Python-urllib2/2.5) (user: myusername)

2.) setting the username part via HTTPConnection.set_username():
     >>> from launchpadbugs.connector import ConnectBug
     >>> Bug = ConnectBug()
     >>> Bug.connection.set_username("myusername")
   this will result in the same user-agen header as in 1.). Same with BugList.

I suggest going with the second method.

Markus

Revision history for this message
Markus Korn (thekorn) wrote :

I forgot to mention: 2.) has no global impact, i.e. writing to the config file

Revision history for this message
Stephan Rügamer (sruegamer) wrote :

in 0.0.1

Changed in leonov:
status: Confirmed → 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.