serializer can't read isd oops report file

Bug #833857 reported by Diogo Matsubara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python OOPS Date-dir repository
Fix Released
High
Diogo Matsubara

Bug Description

To reproduce:

In [1]: import bz2
In [2]: import oops_datedir_repo.serializer_rfc822
In [3]: oops_datedir_repo.serializer_rfc822.read(bz2.BZ2File('/tmp/47152-1522canistel24.oops.bz2', 'r'))
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)

/home/matsubara/devel/canonical/oops-tools/829460-typeerror-qsmmx/<ipython console> in <module>()

/home/matsubara/devel/canonical/oops-tools/trunk/eggs/oops_datedir_repo-0.0.3-py2.7.egg/oops_datedir_repo/serializer_rfc822.pyc in read(fp)
    109 r'^(\d+)-(\d+)(?:@([\w-]+))?\s+(.*)', line)
    110 assert match is not None, (
--> 111 "Unable to interpret oops line: %s" % line)
    112 start, end, db_id, statement = match.groups()
    113 if db_id is not None:

AssertionError: Unable to interpret oops line: REQUEST_METHOD=POST

Oops file can be downloaded here:
https://bazaar.launchpad.net/~launchpad-pqm/oops-tools/trunk/view/head:/src/oopstools/oops/test/files/oops-sample/isd/old/2010-03-02/47152-1522canistel24.oops.bz2

That oops file was logged with a blank line between the request variables, causing the parser to break.

Related branches

Revision history for this message
Robert Collins (lifeless) wrote :

Ugh; do they still generate them like that, or was it crap data? Would they be impacted if we said 'we won't read those: we can do data migration instead' ?

Changed in python-oops-datedir-repo:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Diogo Matsubara (matsubara)
Changed in python-oops-datedir-repo:
status: In Progress → Fix Committed
Changed in python-oops-datedir-repo:
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.