Bug 1496821

Summary: [abrt] python-bugzilla-cli: decode(): codecs.py:321:decode:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfd in position 0: invalid start byte
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: python-bugzillaAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: crobinso, dzickus, jskarvad
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/cc77149aafe14f52850d3d650c275c4f6eb69edc
Whiteboard: abrt_hash:18603bf71b0bdad7edb39cd862e17b2a15f6a09c;VARIANT_ID=workstation;
Fixed In Version: python-bugzilla-2.2.0-1.fc27.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-30 18:51:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Kamil Páral 2017-09-28 13:25:41 UTC
Description of problem:
I tried to upload a binary (xz) attachment to bugzilla using the api.

Version-Release number of selected component:
python-bugzilla-cli-2.1.0-2.fc27

Additional info:
reporter:       libreport-2.9.2
cmdline:        /usr/bin/python3 /usr/bin/bugzilla attach --file=/home/kparal/Desktop/sssd_kcm.log.xz --description=sssd_kcm.log.xz 1494843
crash_function: decode
exception_type: UnicodeDecodeError
executable:     /usr/bin/bugzilla
kernel:         4.13.3-301.fc27.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
#1 decode in /usr/lib64/python3.6/codecs.py:321
#2 attachfile in /usr/lib/python3.6/site-packages/bugzilla/base.py:1498
#3 _do_set_attach in /usr/bin/bugzilla:958
#4 main in /usr/bin/bugzilla:1097
#5 <module> in /usr/bin/bugzilla:1117

Comment 1 Kamil Páral 2017-09-28 13:25:49 UTC
Created attachment 1331986 [details]
File: backtrace

Comment 2 Kamil Páral 2017-09-28 13:25:50 UTC
Created attachment 1331987 [details]
File: cgroup

Comment 3 Kamil Páral 2017-09-28 13:25:51 UTC
Created attachment 1331988 [details]
File: cpuinfo

Comment 4 Kamil Páral 2017-09-28 13:25:53 UTC
Created attachment 1331989 [details]
File: environ

Comment 5 Kamil Páral 2017-09-28 13:25:54 UTC
Created attachment 1331990 [details]
File: mountinfo

Comment 6 Kamil Páral 2017-09-28 13:25:56 UTC
Created attachment 1331991 [details]
File: namespaces

Comment 7 Kamil Páral 2017-09-28 13:25:57 UTC
Created attachment 1331992 [details]
File: open_fds

Comment 8 Cole Robinson 2017-10-20 23:40:21 UTC
Thanks for the report, fixed upstream now:

commit 49f7d78aaf36c9cc9e3a30a9f492ae4ed364d06e (HEAD -> master, origin/master, origin/HEAD)
Author: Cole Robinson <crobinso>
Date:   Fri Oct 20 19:38:53 2017 -0400

    Fix uploading binary attachments (bz 1496821)

Comment 9 Cole Robinson 2018-08-11 14:18:29 UTC
*** Bug 1601878 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2018-08-11 14:31:11 UTC
python-bugzilla-2.2.0-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-103e1c31e1

Comment 11 Fedora Update System 2018-08-13 18:34:51 UTC
python-bugzilla-2.2.0-1.fc27.1 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d8e48fb5f9

Comment 12 Fedora Update System 2018-08-14 20:36:21 UTC
python-bugzilla-2.2.0-1.fc27.1 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-d8e48fb5f9

Comment 13 Fedora Update System 2018-08-30 18:51:30 UTC
python-bugzilla-2.2.0-1.fc27.1 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.