[Bug 453203] Re: UnicodeDecodeError in +filebug: unexpected code byte
This bug was fixed in the package apport - 1.9.6-0ubuntu1 --- apport (1.9.6-0ubuntu1) lucid; urgency=low [ Brian Murray ] * debian/local/apport-collect: Strongly encourage collectors who are not the bug reporter to file a new bug report. [ Marco Rodrigues ] * debian/control: Fix lintian warnings. Move python-distutils-extra to b-d-i and add misc:Depends to apport-qt. [ Martin Pitt ] * New upstream version 1.9.5 and 1.9.6: - apport-retrace: Fix crash if InterpreterPath/ExecutablePath do not exist. - hookutils.py, attach_alsa(): Attach /proc/cpuinfo too, for CPU flags. - Fix crash if InterpreterPath does not exist any more at the time of reporting. (LP: #428289) - apport-gtk: Connect signals properly, to repair cancel/window close buttons. (LP: #427814) - Update German translations and fix konnre typo. (LP: #484119) - launchpad.py: Ensure that text attachments on initial bug filing are valid UTF-8. (LP: #453203) - man/apport-retrace.1: Document -R option. - Add pm-utils hook to record current operation, so that apportcheckresume can check it. Before this was kept in Ubuntu's pm-utils package. - general-hooks/generic.py: Check if using ecryptfs, and which directory. (LP: #444656) * data/general-hooks/ubuntu.py: Add distro release codename tag. (LP: #404250) * debian/local/apport-chroot: Fix last occurrence of --no-dpkg to be --no-pkg. (LP: #487056) * debian/local/apport-collect: Use apport-collect data as comment for the apport-collect attachments to enable bug mail filtering. Thanks to Bryce Harrington for the suggestion. -- Martin Pitt martin.p...@ubuntu.com Wed, 02 Dec 2009 00:01:06 +0100 ** Changed in: apport (Ubuntu) Status: Fix Committed = Fix Released -- UnicodeDecodeError in +filebug: unexpected code byte https://bugs.launchpad.net/bugs/453203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 453203] Re: UnicodeDecodeError in +filebug: unexpected code byte
I now added a test to apport's test suite which reproduces this and potential other situations: invalid UTF-8 in description and attachment at both initial bug filing (+storeblob) and later update (launchpadlib addAttachment()). -- UnicodeDecodeError in +filebug: unexpected code byte https://bugs.launchpad.net/bugs/453203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 453203] Re: UnicodeDecodeError in +filebug: unexpected code byte
trunk r1648 ** Changed in: apport (Ubuntu) Status: In Progress = Fix Committed -- UnicodeDecodeError in +filebug: unexpected code byte https://bugs.launchpad.net/bugs/453203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 453203] Re: UnicodeDecodeError in +filebug: unexpected code byte
** Branch linked: lp:apport -- UnicodeDecodeError in +filebug: unexpected code byte https://bugs.launchpad.net/bugs/453203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 453203] Re: UnicodeDecodeError in +filebug: unexpected code byte
An user emailed me about this bug. OOPS-1417N2600 -- UnicodeDecodeError in +filebug: unexpected code byte https://bugs.launchpad.net/bugs/453203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 453203] Re: UnicodeDecodeError in +filebug: unexpected code byte
Assuming I understood correctly, Martin said he was going to fix this in apport. There are things we could do in Launchpad to work around this, but it seems likely that Martin will have a fix ready before the next Launchpad release - because he's superman :) - so it doesn't make sense for Bugs to spend time on this. ** Changed in: malone Status: Incomplete = Won't Fix -- UnicodeDecodeError in +filebug: unexpected code byte https://bugs.launchpad.net/bugs/453203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 453203] Re: UnicodeDecodeError in +filebug: unexpected code byte
The blob used for my last comment was found from OOPS-1409N1340. -- UnicodeDecodeError in +filebug: unexpected code byte https://bugs.launchpad.net/bugs/453203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 453203] Re: UnicodeDecodeError in +filebug: unexpected code byte
Okay, the cause is that the blob uploaded has invalid data in it. Here's a fragment of one part of the report: ... dmi.board.name: LENOVO dmi.board.vendor: LENOVO dmi.chassis.asset.tag: gibberish here dmi.chassis.type: 6 dmi.chassis.vendor: LENOVO ... The Python repr of characters 790 to 840 of this part of the report is: 'asset.tag: \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\ndmi.chassis.t' In other words, the dmi.chassis.asset.tag value is 25 bytes of ff. We can work around this on Launchpad by doing: inline_content.decode(charset, 'ignore') However, apport should probably be fixed to ensure the report contains only content that's valid for the declared charset. It may even be interesting to record that the value for a field in the report is invalid. -- UnicodeDecodeError in +filebug: unexpected code byte https://bugs.launchpad.net/bugs/453203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 453203] Re: UnicodeDecodeError in +filebug: unexpected code byte
** Changed in: apport (Ubuntu) Status: New = In Progress ** Changed in: apport (Ubuntu) Importance: Undecided = High ** Changed in: apport (Ubuntu) Assignee: (unassigned) = Martin Pitt (pitti) -- UnicodeDecodeError in +filebug: unexpected code byte https://bugs.launchpad.net/bugs/453203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 453203] Re: UnicodeDecodeError in +filebug: unexpected code byte
I am still to talk to Martin Pitt about this. I've been preoccupied with test suite homunculation, er, parallelisation and have let this one slide. Next week, promise. -- UnicodeDecodeError in +filebug: unexpected code byte https://bugs.launchpad.net/bugs/453203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 453203] Re: UnicodeDecodeError in +filebug: unexpected code byte
** Also affects: apport (Ubuntu) Importance: Undecided Status: New -- UnicodeDecodeError in +filebug: unexpected code byte https://bugs.launchpad.net/bugs/453203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs