Bug 2211745 - [abrt] libreport-plugin-bugzilla: b64encode(): base64.py:58:b64encode:TypeError: a bytes-like object is required, not 'str'
Summary: [abrt] libreport-plugin-bugzilla: b64encode(): base64.py:58:b64encode:TypeErr...
Keywords:
Status: CLOSED EOL
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: 2024-09-20 04:25 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-22 11:15:48 UTC
Type: ---
Embargoed:


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!

Comment 9 Jamie Dalgetty 2023-08-24 15:31:28 UTC
reporting a bug - had attached a jpg to it


reporter:       libreport-2.17.11
kernel:         6.4.11-200.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.11-1.fc38
runlevel:       N 5
exception_type: TypeError
crash_function: b64encode
interpreter:    python3-3.11.4-1.fc38.x86_64
comment:        reporting a bug - had attached a jpg to it

Comment 10 Nate 2023-09-21 16:27:52 UTC
I included a .msi installer as one of the related files with a crash for wine.

The program is LANDRChromatic.msi

I won't attach it here, simply because doing so will crash the reporting software.


reporter:       libreport-2.17.11
type:           Python3
executable:     /usr/bin/reporter-bugzilla
interpreter:    python3-3.11.5-1.fc38.x86_64
reason:         base64.py:58:b64encode:TypeError: a bytes-like object is required, not 'str'
exception_type: TypeError
package:        libreport-plugin-bugzilla-2.17.11-1.fc38
uid:            1000
runlevel:       N 5
crash_function: b64encode
kernel:         6.4.15-200.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/app-org.freedesktop.GnomeAbrt-966dd0c6d5ef4c408d415203e449070a.scope

Comment 11 Aoife Moloney 2024-05-22 11:15:48 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 12 Red Hat Bugzilla 2024-09-20 04:25:08 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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