MetricsGrimoire / Bicho

Bicho is a command line based tool used to parse bug/issue tracking systems
http://metricsgrimoire.github.com/Bicho/
GNU General Public License v2.0
68 stars 30 forks source link

Bicho Fails When Bugzilla Fails to Provide XML #80

Closed iKuba closed 10 years ago

iKuba commented 10 years ago

Hello I have been trying to parse the Firefox Bugzilla and Bicho seems to be failing at the first bug with the following error:

Error parsing URL https://bugzilla.mozilla.org/show_bug.cgi?id=0&ctype=xml Traceback (most recent call last): File "/usr/local/bin/bicho", line 25, in retval = Bicho.main.main() File "/usr/local/lib/python2.7/dist-packages/Bicho/main.py", line 56, in main backend.run() File "/usr/local/lib/python2.7/dist-packages/Bicho/backends/bg.py", line 949, in run self._set_version() File "/usr/local/lib/python2.7/dist-packages/Bicho/backends/bg.py", line 1009, in _set_version parser.feed(cleaned_contents) File "/usr/lib/python2.7/xml/sax/expatreader.py", line 211, in feed self._err_handler.fatalError(exc) File "/usr/lib/python2.7/xml/sax/handler.py", line 38, in fatalError raise exception xml.sax._exceptions.SAXParseException: http://www.w3.org/TR/html4/loose.dtd:31:2: error in processing external entity reference

The link to the bug is as follows: https://bugzilla.mozilla.org/show_bug.cgi?ctype=xml&id=1

Please let me know if you require any additional information or if I can be of any assistance!

jgbarah commented 10 years ago

I'm not sure what's happening, but I know we have parsed Firefox Bugzilla... Assigning to Luis, who probably could have at least a quick look at this.

iKuba commented 10 years ago

Hello, I'd just like to follow up on this issue!

canasdiaz commented 10 years ago

Sorry for the delay iKuba. I confirm the error.

´´´ luis@tahine:~/repos/Bicho$ ./bicho --db-user-out=root --db-password-out=root --db-database-out=lcanas_bicho_test -d 0 -b bg -u https://bugzilla.mozilla.org/buglist.cgi?product=Firefox Checking URL: https://bugzilla.mozilla.org No bugzilla account provided, mail addresses won't be retrieved Running Bicho with delay of 0 seconds Error parsing URL https://bugzilla.mozilla.org/show_bug.cgi?id=0&ctype=xml Traceback (most recent call last): File "./bicho", line 8, in retval = Bicho.main.main() File "/home/luis/repos/Bicho/Bicho/main.py", line 56, in main backend.run() File "/home/luis/repos/Bicho/Bicho/backends/bg.py", line 949, in run self._set_version() File "/home/luis/repos/Bicho/Bicho/backends/bg.py", line 1009, in _set_version parser.feed(cleaned_contents) File "/usr/lib/python2.7/xml/sax/expatreader.py", line 214, in feed self._err_handler.fatalError(exc) File "/usr/lib/python2.7/xml/sax/handler.py", line 38, in fatalError raise exception xml.sax._exceptions.SAXParseException: http://www.w3.org/TR/html4/loose.dtd:31:2: error in processing external entity reference ´´´

canasdiaz commented 10 years ago

We had an issue with the newest Bugzilla version when Bicho gets the Bugzilla version number using a fake bug. Now it is solved.