bugnumbers crashed with TypeError in get_current_task()

Bug #203517 reported by Daniel Holbach
6
Affects Status Importance Assigned to Milestone
python-launchpad-bugs (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: bughelper

bugnumbers --lc "u:dholbach" -l https://bugs.launchpad.net/ubuntu/+bugs-text?field.subscriber=ubuntu-main-sponsors

ProblemType: Crash
Architecture: amd64
Date: Tue Mar 18 12:46:53 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/bugnumbers
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: bughelper 0.2.13
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/bugnumbers --lc u:dholbach -l https://bugs.launchpad.net/ubuntu/+bugs-text?field.subscriber=ubuntu-main-sponsors
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_DE.UTF-8
PythonArgs: ['/usr/bin/bugnumbers', '--lc', 'u:dholbach', '-l', 'https://bugs.launchpad.net/ubuntu/+bugs-text?field.subscriber=ubuntu-main-sponsors']
SourcePackage: bughelper
Title: bugnumbers crashed with TypeError in get_current_task()
Uname: Linux 2.6.24-12-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin netdev plugdev powerdev scanner vboxusers video

Tags: apport-crash
Revision history for this message
Daniel Holbach (dholbach) wrote :
Revision history for this message
Markus Korn (thekorn) wrote :

hmm, your are right, something is wrong here, tasksbase.LPTasks.current_from_listurl() is not working as expected, will work on this later today.
As a temporary workaround run:

bugnumbers --lc "u:dholbach" -l https://bugs.launchpad.net/ubuntu/+bugs?field.subscriber=ubuntu-main-sponsors

Markus

Changed in python-launchpad-bugs:
assignee: nobody → thekorn
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Markus Korn (thekorn) wrote :

My last comment is not completely right, tasksbase.LPTasks.current_from_listurl() does what it should do.
The problem here is that the '+bug-text' url is used directly as an argument for bugnumbers. I always thought that this would work without any problems, but I'm obviously wrong. There are two possible solutions for this:
   * explicitly allow +bugs-text urls as an argument for py-lp-bugs, then we have to check the current code and find other cases where this fails. The problem here is: whenever LP gets another interface, we need to check this again.
   * only support +bugs urls as an argument for py-lp-bugs, this is defacto the current state (when +bugs-text urls are working properly then it's just luck)

I think we should go with the second solution. And then we should change bughelper/bugnumbers to always convert +bugs-text urls to +bugs, so it's always the task of the script using py-lp-bugs to ensure that +bugs urls are used.

Markus

Changed in python-launchpad-bugs:
assignee: thekorn → nobody
status: In Progress → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

With the pending roll out of the API I think going with the second solution also makes sense.

Revision history for this message
dino99 (9d9) wrote :

This version has died long ago; no more supported

Changed in python-launchpad-bugs (Ubuntu):
status: Confirmed → Invalid
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.