rpm-software-management / dnf5

Next-generation RPM package management system
Other
256 stars 86 forks source link

Fix `sdbus::ObjectPath` when checking signals `object_path` #1711

Closed kontura closed 2 months ago

kontura commented 2 months ago
  1. Fix deserialization when checking signals object_path.

    Since https://github.com/rpm-software-management/dnf5/pull/1679 sdbus::ObjectPath is send over to the client not std::string.

    This was causing the check signature_valid(sdbus::Signal &) to crash, the client callback ended and the server kept waiting for result of the key_import userconfirm.

    (I believe we should somehow handle when DbusCallback::signature_valid() returns false but I am not sure what would be the best approach. At least logging the event would be good (through the context?).)

  2. The other commit fixes a bug for dnf5daemon offline transactions, analogous to https://github.com/rpm-software-management/dnf5/pull/1672.