Bug 1845948

Summary: downgrading a flatpak requires a manual installation of an older runtime
Product: Red Hat Enterprise Linux 8 Reporter: Martin Krajnak <mkrajnak>
Component: flatpakAssignee: David King <dking>
Status: CLOSED ERRATA QA Contact: Martin Krajnak <mkrajnak>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.3CC: jkoten, mclasen, tpelka
Target Milestone: rc   
Target Release: 8.4   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: flatpak-1.8.2-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:26:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Krajnak 2020-06-10 13:28:49 UTC
Description of problem:
I spoke about the issue with alex, the issue is fixed in flatpak > 1.7.2, however I am opening this, so we can track the issue for 8.3. 



Version-Release number of selected component (if applicable):
flatpak-1.6.2-2.el8.x86_64

How reproducible:
always

Steps to Reproduce:

$ flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
 
$ flatpak -y install org.gnome.gedit

# Use flatpak remove-info --log to obtain a commit number of an older version (3.36 -> 3.33 in my case)
$ flatpak remote-info --log  flathub org.gnome.gedit

#downgrade 
$ flatpak -y updade --commit=04978ea40efb3635bea93ab023f64be4a591816abb4d4feaeb69ba548304e7f7 org.gnome.gedit

#run
$ flatpak run org.gnome.gedit

Actual results:
error: runtime/org.gnome.Platform/x86_64/3.34 not installed

Expected results:
flatpak shoul install the older runtime when downgrading the flatpak

Additional info:
# workaround
$ flatpak -y install runtime/org.gnome.Platform/x86_64/3.34
$ flatpak run org.gnome.gedit

Comment 7 Martin Krajnak 2020-10-30 10:15:24 UTC
flatpak-selinux-1.8.2-1.el8.noarch
flatpak-libs-1.8.2-1.el8.x86_64
flatpak-session-helper-1.8.2-1.el8.x86_64
flatpak-1.8.2-1.el8.x86_64


An older runtime is now installed during the downgrade.

Comment 9 errata-xmlrpc 2021-05-18 15:26:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (flatpak bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1781