Bug 2211745 - [abrt] libreport-plugin-bugzilla: b64encode(): base64.py:58:b64encode:TypeError: a bytes-like object is required, not 'str' [NEEDINFO]
Summary: [abrt] libreport-plugin-bugzilla: b64encode(): base64.py:58:b64encode:TypeErr...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: libreport
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: abrt
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:5fe449334bc2936b1eb4a07993c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-01 18:49 UTC by Aleksandr
Modified: 2023-07-01 03:26 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
msrb: needinfo? (forgest94)


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2023-06-01 18:49 UTC, Aleksandr
no flags Details
File: environ (1.77 KB, text/plain)
2023-06-01 18:49 UTC, Aleksandr
no flags Details
File: mountinfo (4.06 KB, text/plain)
2023-06-01 18:49 UTC, Aleksandr
no flags Details
File: open_fds (489 bytes, text/plain)
2023-06-01 18:49 UTC, Aleksandr
no flags Details
File: namespaces (171 bytes, text/plain)
2023-06-01 18:49 UTC, Aleksandr
no flags Details
File: backtrace (962 bytes, text/plain)
2023-06-01 18:49 UTC, Aleksandr
no flags Details
File: cpuinfo (3.07 KB, text/plain)
2023-06-01 18:49 UTC, Aleksandr
no flags Details

Description Aleksandr 2023-06-01 18:49:20 UTC
Version-Release number of selected component:
libreport-plugin-bugzilla-2.17.10-1.fc38

Additional info:
reporter:       libreport-2.17.10
kernel:         6.2.15-300.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/reporter-bugzilla -b -c /etc/libreport/plugins/bugzilla.conf -F /etc/libreport/plugins/bugzilla_format.conf -A /etc/libreport/plugins/bugzilla_formatdup.conf
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/dbus-:1.2-org.freedesktop.problems.applet
uid:            1000
reason:         base64.py:58:b64encode:TypeError: a bytes-like object is required, not 'str'
executable:     /usr/bin/reporter-bugzilla
type:           Python3
package:        libreport-plugin-bugzilla-2.17.10-1.fc38
runlevel:       N 5
exception_type: TypeError
crash_function: b64encode
interpreter:    python3-3.11.3-2.fc38.x86_64

Truncated backtrace:
base64.py:58:b64encode:TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):
  File "/usr/bin/reporter-bugzilla", line 799, in <module>
    response = bz_conn.attachment_create_from_problem_data(new_id, attachment, problem_data)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/reportclient/internal/bz_connection.py", line 145, in attachment_create_from_problem_data
    file_content = base64.b64encode(pd_item['content']).decode('utf-8')
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/base64.py", line 58, in b64encode
    encoded = binascii.b2a_base64(s, newline=False)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'str'

Local variables in innermost frame:
s: '/var/spool/abrt/ccpp-2023-05-30-23:05:23.521169-29233/backtrace'
altchars: None

Comment 1 Aleksandr 2023-06-01 18:49:25 UTC
Created attachment 1968381 [details]
File: os_info

Comment 2 Aleksandr 2023-06-01 18:49:27 UTC
Created attachment 1968382 [details]
File: environ

Comment 3 Aleksandr 2023-06-01 18:49:30 UTC
Created attachment 1968383 [details]
File: mountinfo

Comment 4 Aleksandr 2023-06-01 18:49:32 UTC
Created attachment 1968384 [details]
File: open_fds

Comment 5 Aleksandr 2023-06-01 18:49:34 UTC
Created attachment 1968385 [details]
File: namespaces

Comment 6 Aleksandr 2023-06-01 18:49:36 UTC
Created attachment 1968386 [details]
File: backtrace

Comment 7 Aleksandr 2023-06-01 18:49:38 UTC
Created attachment 1968387 [details]
File: cpuinfo

Comment 8 Michal Srb 2023-07-01 03:26:18 UTC
Thanks for the bug report. Would you happen to have that "/var/spool/abrt/ccpp-2023-05-30-23:05:23.521169-29233/backtrace" file still on your laptop please?
If so, would it be possible to upload it here? Thanks!


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