Bug 1496821 - [abrt] python-bugzilla-cli: decode(): codecs.py:321:decode:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfd in position 0: invalid start byte
Summary: [abrt] python-bugzilla-cli: decode(): codecs.py:321:decode:UnicodeDecodeError...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-bugzilla
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:18603bf71b0bdad7edb39cd862e...
: 1601878 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-28 13:25 UTC by Kamil Páral
Modified: 2018-08-30 18:51 UTC (History)
3 users (show)

Fixed In Version: python-bugzilla-2.2.0-1.fc27.1
Clone Of:
Environment:
Last Closed: 2018-08-30 18:51:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (62.54 KB, text/plain)
2017-09-28 13:25 UTC, Kamil Páral
no flags Details
File: cgroup (355 bytes, text/plain)
2017-09-28 13:25 UTC, Kamil Páral
no flags Details
File: cpuinfo (1.27 KB, text/plain)
2017-09-28 13:25 UTC, Kamil Páral
no flags Details
File: environ (4.23 KB, text/plain)
2017-09-28 13:25 UTC, Kamil Páral
no flags Details
File: mountinfo (3.93 KB, text/plain)
2017-09-28 13:25 UTC, Kamil Páral
no flags Details
File: namespaces (102 bytes, text/plain)
2017-09-28 13:25 UTC, Kamil Páral
no flags Details
File: open_fds (322 bytes, text/plain)
2017-09-28 13:25 UTC, Kamil Páral
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.