pastebinit crashed with UnicodeDecodeError in decode(): 'utf-8' codec can't decode byte 0xad in position 15319: invalid start byte

Bug #1760310 reported by Alistair Buxton on 2018-03-31
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pastebinit (Ubuntu)
Medium
Unassigned

Bug Description

To reproduce:

1. Attempt to paste non-unicode data with a pipe:

    cat ~/.config/pulse/cookie | pastebinit

Result:

Python throwsa Unicode error.

Expected result:

It should work, as it does if you run:

pastebinit ~/.config/pulse/cookie

Impact:

If a program outputs even one invalid ascii/unicode character, the paste will fail. This is a common problem when porting python 2 apps to python 3.

ProblemType: Crash
DistroRelease: Ubuntu 18.04
Package: pastebinit 1.5-1
ProcVersionSignature: Ubuntu 4.15.0-13.14-generic 4.15.10
Uname: Linux 4.15.0-13-generic x86_64
ApportVersion: 2.20.9-0ubuntu2
Architecture: amd64
Date: Sat Mar 31 15:29:58 2018
ExecutablePath: /usr/bin/pastebinit
InstallationDate: Installed on 2018-03-31 (0 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180331)
InterpreterPath: /usr/bin/python3.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/pastebinit
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
 TERM=xterm-256color
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
Python3Details: /usr/bin/python3.6, Python 3.6.5rc1, python3-minimal, 3.6.4-1
PythonArgs: ['/usr/bin/pastebinit']
PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-4
SourcePackage: pastebinit
Title: pastebinit crashed with UnicodeDecodeError in decode(): 'utf-8' codec can't decode byte 0xad in position 15319: invalid start byte
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Alistair Buxton (a-j-buxton) wrote :
information type: Private → Public
tags: removed: need-duplicate-check
Changed in pastebinit (Ubuntu):
importance: Undecided → Medium
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pastebinit (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers