pastebinit crashed with UnicodeEncodeError in quote(): 'utf-8' codec can't encode characters in position 340-342: surrogates not allowed

Bug #1757536 reported by Julian Andres Klode
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pastebinit (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

I can't pastebin http://paste.ubuntu.com/p/qFfThVFChK/ via stdin, only as a file... seen that on a lot of inputs. pastebinit should probably just use bytes and avoid redecoding stuff?

ProblemType: Crash
DistroRelease: Ubuntu 18.04
Package: pastebinit 1.5-1
ProcVersionSignature: Ubuntu 4.15.0-12.13-generic 4.15.7
Uname: Linux 4.15.0-12-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
Date: Wed Mar 21 21:44:01 2018
ExecutablePath: /usr/bin/pastebinit
InstallationDate: Installed on 2018-03-14 (7 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180313)
InterpreterPath: /usr/bin/python3.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/pastebinit
ProcEnviron:

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 UnicodeEncodeError in quote(): 'utf-8' codec can't encode characters in position 340-342: surrogates not allowed
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo

Revision history for this message
Julian Andres Klode (juliank) wrote :
information type: Private → Public
tags: removed: need-duplicate-check
Changed in pastebinit (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Worked fine for me with http://paste.debian.net/1019662/

Maybe specific to paste.ubuntu.com?

Revision history for this message
Rolf Leggewie (r0lf) wrote :

I fail to reproduce this for paste.ubuntu.com as well

http://paste.ubuntu.com/p/WKJd2RzwzP/

Changed in pastebinit (Ubuntu):
status: New → Incomplete
Revision history for this message
Rolf Leggewie (r0lf) wrote :

That being said, I was able to verify bug 1760310 which I believe simply has a better test case but otherwise is claiming the same problem.

Revision history for this message
Julian Andres Klode (juliank) wrote :

Surprisingly enough, I can paste this one via stdin now as well, how odd.

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.