IOError: Not a gzipped file on uncompressed gzip attachment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
Binary package hint: apport
When you download a report with an attachment with a .gz extension but this attachment is already decompressed, the download of the report fails with the error:
Traceback (most recent call last):
File "./crashdb_bug.py", line 6, in <module>
report = crashdb.
File "/usr/lib/
report[key] = gzip.GzipFile(
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
raise IOError, 'Not a gzipped file'
IOError: Not a gzipped file
== Example to reproduce ==
#!/usr/bin/python
import apport
from apport.crashdb import get_crashdb
crashdb = get_crashdb(None)
report = crashdb.
This is a very common failure with reports with VarLogDistupgra
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: apport 1.13.3-0ubuntu2
ProcVersionSign
Uname: Linux 2.6.32-19-generic i686
ApportLog:
Architecture: i386
CrashReports: 600:0:0:
Date: Mon May 3 12:28:17 2010
EcryptfsInUse: Yes
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: apport
tags: | added: patch |
Changed in apport (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
importance: | Undecided → Low |
status: | New → In Progress |
Here is a possible patch.