Bug 2156680 - Dnfdragora crashes when looking at a certain history element
Summary: Dnfdragora crashes when looking at a certain history element
Alias: None
Product: Fedora
Classification: Fedora
Component: dnfdragora
Version: 36
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2022-12-28 06:33 UTC by Persona non grata
Modified: 2023-05-25 18:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Last Closed: 2023-05-25 18:06:50 UTC
Type: Bug

Attachments (Terms of Use)

Description Persona non grata 2022-12-28 06:33:02 UTC
Description of problem:
When clicking on a certain history item to display the details, the client crashes with the following error:

dnfdaemon client failure [g-io-error-quark: GDBus.Error:org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib64/python3.10/site-packages/dbus/service.py", line 715, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3.10/site-packages/dnfdaemon/server/__init__.py", line 68, in newFunc
    rc = func(*args, **kwargs)
  File "/usr/share/dnfdaemon/dnfdaemon-system", line 291, in GetHistoryPackages
    value = self.get_history_transaction_pkgs(tid)
  File "/usr/lib/python3.10/site-packages/dnfdaemon/server/__init__.py", line 731, in get_history_transaction_pkgs
    pkg_id = self._get_id(pkg)
  File "/usr/lib/python3.10/site-packages/dnfdaemon/server/__init__.py", line 1064, in _get_id
    values = [pkg.name, str(pkg.epoch), pkg.version, pkg.release, pkg.arch]
  File "/usr/lib/python3.10/site-packages/dnf/db/history.py", line 72, in name
    return self._item.getRPMItem().getName()
AttributeError: 'NoneType' object has no attribute 'getName'
<_M_> [ui] YUILoader.cc:236 deleteUI(): Shutting down UI
using dnf history command line to find the same entry, followed by dnf history info [id] displays the details without issue.

Version-Release number of selected component (if applicable):
$ dnfdragora --version
version: 2.1.2

$ dnf --version
  Installed: dnf-0:4.14.0-1.fc36.noarch at Wed 09 Nov 2022 18:29:34 GMT
  Built    : Fedora Project at Fri 09 Sep 2022 13:49:11 GMT

  Installed: rpm-0:4.17.1-3.fc36.x86_64 at Wed 09 Nov 2022 18:28:25 GMT
  Built    : Fedora Project at Tue 02 Aug 2022 12:31:56 GMT

How reproducible:

Steps to Reproduce:
1. Launch dnfdragora-update from gui, or dnfdragora from terminal
2. Open History [Information | History]
3. Select (certain) item to display Transaction History (not all items crash, in fact, there is only one history item in my list that is an offender)

Actual results:
Client crashes and closes or hangs

Expected results:
Results displayed in 'Transaction History' panel/list.

Additional info:
This bug is similar to the following github report from 2019:

Comment 1 Ben Cotton 2023-04-25 18:16:33 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Ludek Smid 2023-05-25 18:06:50 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 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.

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