openhatch / oh-bugimporters

Bug importers for the OpenHatch project oh-mainline
https://oh-bugimporters.readthedocs.org/
GNU Affero General Public License v3.0
12 stars 28 forks source link

bugimporters.bugzilla crashes on KDE Junior Jobs query #83

Closed ghost closed 10 years ago

ghost commented 10 years ago

Comment by paulproteus:

I'm looking at a stack trace from a bug crawl on the live site, and I see that handle_query_response() crashed when downloading data from:

https://bugs.kde.org/buglist.cgi?query_format=advanced&keywords=junior- jobs&resolution=---

This seems to be a general problem with parsing these HTML responses, so when we can figure this out, quite a few more bug trackers should be able to import cleanly.

To fix this, take the following steps:

  • Create a new test method in some existing class in bugimporters/tests/test_bugzilla.py
  • Make sure the above URL appears in the list of queries for the TrackerModel (usually self.tm or "tm").
  • Then run the test suite and watch it crash. Fix the crashes and now you'll get bugs imported in the test.

Hooray.


Comment by paulproteus:

Fixed in https://github.com/openhatch/oh-bugimporters/commit/be0fcaa8c4efef80f3c6191bb850b1314f864415


Status: resolved Nosy List: paulproteus Priority: bug Imported from roundup ID: 789 (view archived page) Last modified: 2012-11-26.19:45:12