https://bugs.kde.org/show_bug.cgi?id=505245

Akseli Lahtinen <akse...@akselmo.dev> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/discover/-/commit/1c6ff6
                   |                            |894e551a53c387d9f9a9f0429f6
                   |                            |3442e50
         Resolution|---                         |FIXED

--- Comment #7 from Akseli Lahtinen <akse...@akselmo.dev> ---
Git commit 1c6ff6894e551a53c387d9f9a9f0429f63442e50 by Akseli Lahtinen.
Committed on 09/06/2025 at 07:36.
Pushed by ngraham into branch 'master'.

FlatpakTransactionThread: Copy job to new ref after rebase

When rebasing, the transaction still has the reference of the old item.
When rebasing is done and we know the new ref, the reference we ask for
during the new_operation_cb sets the new reference as current. This
causes an assert to fail the transaction, since the transaction
has the reference for the old item, even the job is still the same job.

Possible fix for this is to just copy the job and insert new ref as key
to the m_jobTransactionsByRef map, with the copied job: The job is
the same job for both the old and new reference.

M  +4    -0    libdiscover/backends/FlatpakBackend/FlatpakTransactionThread.cpp

https://invent.kde.org/plasma/discover/-/commit/1c6ff6894e551a53c387d9f9a9f0429f63442e50

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to