AssertionError: Wrong XPath-Expr in InfoTable.parse() 'type'

Bug #184594 reported by Kjell Braden
2
Affects Status Importance Assigned to Milestone
python-launchpad-bugs (Ubuntu)
Fix Released
Undecided
Markus Korn

Bug Description

Binary package hint: python-launchpad-bugs

I used bughelper to find some bugs:

$ bughelper --cookie=$HOME/.mozilla/firefox/*/cookies.txt -T compiz "workaroundsRemoveFromFullscreenList" "WA problem" -p compiz
'Checked at [] - no clues found. Check README on how to create one using the bugxml(1) command.'
Traceback (most recent call last):
  File "/usr/bin/bughelper", line 228, in <module>
    main()
  File "/usr/bin/bughelper", line 172, in main
    info_file = files.get_info_file(b.sourcepackage, cl.options.verbose)
  File "/usr/lib/python2.5/site-packages/launchpadbugs/bugbase.py", line 17, in <lambda>
    if fget : fget = lambda s, n=fget.__name__ : getattr(s, n)()
  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_bug.py", line 128, in f
    x = a.infotable.current
  File "/usr/lib/python2.5/site-packages/launchpadbugs/bugbase.py", line 17, in <lambda>
    if fget : fget = lambda s, n=fget.__name__ : getattr(s, n)()
  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_bug.py", line 161, in func
    x.parse()
  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_bug.py", line 503, in parse
    assert type, "Wrong XPath-Expr in InfoTable.parse() 'type' (%s)" %(DEBUG_URL or "unknown")
AssertionError: Wrong XPath-Expr in InfoTable.parse() 'type' (https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141472)

I'm not sure whether I did something wrong since I've never really used bughelper before, but this looks like a bug.

ProblemType: Bug
Architecture: i386
Date: Sun Jan 20 16:23:19 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Package: python-launchpad-bugs 0.2.26
PackageArchitecture: all
SourcePackage: python-launchpad-bugs
Uname: Linux hegg 2.6.24-4-generic #1 SMP Mon Jan 14 17:30:39 UTC 2008 i686 GNU/Linux

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

Hi Kjell,
thanks for reporting this, this is really a bug in python-launchpad-bugs.

The reason for this bug is that the way of handling remote bugreports in "https://bugs.edge.launchpad.net" changed.
You can workaround this issue by not defineing '--cookie'.

Working on a fix.

Markus

Changed in python-launchpad-bugs:
assignee: nobody → thekorn
Revision history for this message
Markus Korn (thekorn) wrote :

This patch against py-lp-bugs .main rev57 fixes this issue,
needs some testing before committing to .main.

Test case:
In [1]: import launchpadbugs.connector as Connector

In [2]: Bug = Connector.ConnectBug()

In [3]: Bug.authentication = {"password": "******", "email":"<email address hidden>"}

In [4]: b = Bug(url="https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141472")

In [5]: print b.infotable
[[Compiz (remote): Confirmed/Unknown],[compiz (Ubuntu): New/Undecided]]

If you are member of 'launchpad-beta-testers' and did not apply the patch, the last statement would raise the Error in the description of this bugreport.

Markus

Markus Korn (thekorn)
Changed in python-launchpad-bugs:
status: New → Fix Committed
Revision history for this message
Kjell Braden (afflux) wrote :

It works for me.

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

ok, Kjell, thanks for testing this.
Fix commited:
------------------------------------------------------------
revno: 59
committer: Markus Korn <email address hidden>
branch nick: main
timestamp: Fri 2008-01-25 17:41:40 +0100
message:
  launchpadbugs/html_bug.py: fixed parsing of task type, the html connector should now work with the latest LP rollout (LP: 184594)
------------------------------------------------------------

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

released in 0.2.27 (hardy)

Changed in python-launchpad-bugs:
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.