Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2012817 - homebank package has invalid appstream metadata, causes various problems in GNOME Software
Summary: homebank package has invalid appstream metadata, causes various problems in G...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: homebank
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Filipe Rosset
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: RejectedBlocker
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-11 11:16 UTC by Kamil Páral
Modified: 2022-11-10 22:19 UTC (History)
9 users (show)

Fixed In Version: homebank-5.5.8-1.fc36 homebank-5.5.8-1.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-10-24 14:09:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
video: homebank installation confusion (deleted)
2021-10-11 11:17 UTC, Kamil Páral
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME gnome-software issues 1490 0 None None None 2021-10-11 11:49:28 UTC
Launchpad homebank/+bug/1989171 0 None None None 2022-09-14 12:58:14 UTC

Description Kamil Páral 2021-10-11 11:16:16 UTC
Description of problem:
If I install HomeBank as an RPM (which also has a flatpak version on Flathub), the UI in gnome-software starts to be very confusing and broken:

1. If I open the HomeBank page in a certain way (e.g. from the Featured carousel), I see "Source: Flathub" at the top, and an Install button. Since I already have HomeBank installed, I'd expect "Source: Fedora RPM" to be selected instead, and "Open+Remove" buttons present.
2. When I switch to "Source: Fedora RPM", the whole Source menu disappears! The Open+Remove buttons are there, but I can't switch to a Flathub version any longer.
3. When I go back to the homescreen and open the HomeBank page in any way (through the Featured carousel, or by searching for it, or by clicking on it in the Installed tab), the Source panel is still gone, but the Flathub version is selected, and so I only see the Install button, but not Open+Remove buttons.
4. The only way to uninstall HomeBank is to find the item by scrolling down the Installed tab (I must not search for it using Ctrl+F!), and then click Uninstall in that list (I must not click on that menu item to open the app details page!).

See the attached video.

Version-Release number of selected component (if applicable):
gnome-software-41.0-5.fc35.x86_64

How reproducible:
seems always

Steps to Reproduce:
1. install homebank from gnome-software
2. add flathub using https://flatpak.org/setup/Fedora/
3. reboot or relog
4. don't search for "homebank" in gnome, that would trigger something in gnome-software and the results would differ
5. in gnome-software, open HomeBank through Featured carousel
6. notice Source: Flathub at the top, and an Install button (wrong)
7. switch to Source: Fedora RPM, see the whole Source menu disappear
8. go back to gnome-software's homescreen, and open the homebank app detail page again in any way (searching, featured, etc)
9. see only Install button and no Source menu

Expected results:
1. when I open HomeBank app detail page and I have it installed, gnome-software should pre-select the way how I have it currently installed, i.e. I should always see Open+Remove buttons, and never Install (again) button
2. the Source menu shouldn't disappear

Comment 1 Kamil Páral 2021-10-11 11:17:22 UTC
Created attachment 1831844 [details]
video: homebank installation confusion

Comment 2 Kamil Páral 2021-10-11 11:21:48 UTC
This was already partially mentioned in bug 2010660 comment 7, I just explored some cases more and added a video.

Proposing for a blocker discussion. With the current issues it's very easy to end up with 2 HomeBank installations (Fedora RPM + Flathub), and quite hard to uninstall the Fedora RPM installation. However, please note that I've seen this problem only in the combination of Fedora RPM + Flathub (and also the app not available as a Fedora Flatpak). In cases of Fedora RPM + Fedora Flatpak, which is quite common for pre-installed apps in Fedora Workstation, I couldn't reproduce this.

Comment 3 Milan Crha 2021-10-11 11:49:28 UTC
(In reply to Kamil Páral from comment #0)
> Expected results:
> 1. when I open HomeBank app detail page and I have it installed,
> gnome-software should pre-select the way how I have it currently installed,
> i.e. I should always see Open+Remove buttons, and never Install (again)
> button
> 2. the Source menu shouldn't disappear

Thanks for a bug report. The 2.) from the above quote is nothing new, I saw it in the previous version (40.x) too. The 1.) is supposed to work that way, the installed app should be preselected.

I think this is related to, even it's the opposite there:
https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1465

It's better to fill such things upstream. I filled it for you as:
https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1490

Comment 4 Kamil Páral 2021-10-11 11:56:09 UTC
> It's better to fill such things upstream. I filled it for you as:
> https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1490

I know, but I need it downstream for the blocker discussion. I subscribed to the upstream issue. Thanks.

Comment 5 Milan Crha 2021-10-11 12:44:59 UTC
> I know, but I need it downstream for the blocker discussion.

Sure, understood.

For what it's worth, I tried with 3.38.3 and that cannot find the RPM version too, it offers the same set of alternatives as the 41.0 (for me two Flatpak versions), the difference is that when I click the application on the Installed page the 3.38.3 version keeps the RPM variant selected, while the 41.0 removes it due to no match.

The variants are figured from the appstream data. There does not match something with the RPM version.

Comment 6 Milan Crha 2021-10-11 13:55:46 UTC
One part of ghe problem is the homebank.appdata.xml content, it doesn't have expected attributes, thus it's treated as a wildcard match, where the wildcards are removed from the result of the alternative applications. More at: https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1490#note_1287432

As mentioned above, this is not a regression, it had been just discovered by using "a different application". I do not think this worth a blocker state.

Comment 7 Kamil Páral 2021-10-11 14:31:52 UTC
Milan, are you saying this problem is very specific to HomeBank (and possibly other applications where their metadata differ in different sources), and so that it's unlikely that this will affect a large number of applications?

Note, if g-s wouldn't display a particular source for an app (e.g. flathub would not be accessible), or if it displayed the same app as two different items in search, I think that would be preferable to this inconsistent where it sometimes displays multiple sources, sometimes it doesn't, and often doesn't even allow you to uninstall the app.

Comment 8 Milan Crha 2021-10-11 15:44:07 UTC
(In reply to Kamil Páral from comment #7)
> Milan, are you saying this problem is very specific to HomeBank (and
> possibly other applications where their metadata differ in different
> sources), and so that it's unlikely that this will affect a large number of
> applications?

Yes, I believe it's related to the HomeBank.

I tried to "introspect" the appstream data in question and it seems the HomeBank is the only app I have installed here which exhibits the problem, out of 152 tested. The full appstream data are all fine, it's only the .appdata.xml file causing trouble for the HomeBank. This surprised me a bit, I expected more affected apps, but maybe I'm not totally dull.

Comment 9 Milan Crha 2021-10-11 16:54:49 UTC
After spending quite some time on this, I think the best will be to move this to the `homebank` package and then to their upstream.
When you try with GNOME Notes, it works as expected.

------------------------------------------------------------------------

Some analyse on the HomeBank:

Looking into the code:

   https://bazaar.launchpad.net/~mdoyen/homebank/trunk/view/head:/data/homebank.appdata.xml.in#L4

there is used:

   <licence>GPL-2.0+</licence>

but this is not known to the appstream project:

   https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html

The appstream uses the <metadata_license/> element, which gnome-software is looking for.

I can workaround this on the gnome-software side, but as it would be only for the HomeBank (from those I have installed), I'd prefer not to do that.

Side note:

   $ appstream-util validate-relax --nonet /usr/share/appdata/homebank.appdata.xml 
   /usr/share/appdata/homebank.appdata.xml: OK

   $ appstream-util validate --nonet /usr/share/appdata/homebank.appdata.xml 
   /usr/share/appdata/homebank.appdata.xml: FAILED:
   • tag-invalid           : <metadata_license> is not valid [GPL-2.0+]
   • tag-missing           : <content_rating> required [use https://odrs.gnome.org/oars]
   • tag-missing           : <release> required
   • tag-missing           : <name> is not present
   • tag-missing           : <summary> is not present
   Validation of files failed

Comment 10 Geoffrey Marr 2021-10-11 18:53:46 UTC
Discussed during the 2021-10-11 blocker review meeting: [0]

The decision to classify this bug as a "RejectedBlocker (Final)" was made as multiple testers found no bugs in basic functionality here, screenshot taking works as intended via shortcuts and in the app launched from the overview.

[0] https://meetbot.fedoraproject.org/fedora-blocker-review/2021-10-11/f35-blocker-review.2021-10-11-16.00.txt

Comment 11 Geoffrey Marr 2021-10-11 18:57:55 UTC
Disregard comment 10.

Discussed during the 2021-10-11 blocker review meeting: [0]

The decision to classify this bug as a "RejectedBlocker (Final)" was made as per discussion in the bug reports downstream and upstream the problems here seem to be triggered by specific qualtiies of Homebank's flatpak metadata, thus they're not really broad enough to count as basic functionality failures (and can be fixed outside of Fedora, in the metadata).

[0] https://meetbot.fedoraproject.org/fedora-blocker-review/2021-10-11/f35-blocker-review.2021-10-11-16.00.txt

Comment 12 Filipe Rosset 2022-09-07 17:50:58 UTC
hi guys, did you know if this is fixed in recent versions?
I do no use gnome or gnome-software, only Xfce, so I'm not affected by this behavior / bug.
thanks.

Comment 13 Milan Crha 2022-09-08 05:35:45 UTC
You can run gnome-software from a command line and verify yourself, like anybody else.

I tested with gnome-software-43.rc-1.fc37.x86_64 and the problem is still there. Once the RPM version is installed it's lost from the Sources and only the Flatpak version is present to the user.

Comment 14 Milan Crha 2022-09-08 05:55:47 UTC
I suggest you to pass this to the upstream.

When I do the below changes it'll work properly (they simply use an old appstream data format). They should pay attention to the validation of the appdata content. I used appstreamcli 0.15.4 as:

  $ appstreamcli validate --explain --no-net /usr/share/appdata/homebank.appdata.xml

By the way, the file should be installed in /usr/share/metainfo/ these days, not in the ../appdata/.

The changes I made, in the diff format:

@@ -1,7 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<application>
-  <id type="desktop">homebank.desktop</id>
-  <licence>GPL-2.0+</licence>
+<component type="desktop">
+  <id>homebank.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-2.0+</project_license>
+  <name>Homebank</name>
+  <summary>Homebank summary</summary>
   <description>
     <p>HomeBank is a free software (as in "free speech" and also as in "free beer") that will assist you to manage your personal accounting.</p>
     <p xml:lang="ar">برنامج هوم بانك هو برنامج مجاني ويستطيع ان يساعدك في ادارة حساباتك الشخصية والمالية</p>
@@ -133,8 +136,10 @@
     <p xml:lang="zh_TW">如果您正在尋找一個完全免費而簡單的方法來管理您的個人財務,那麼HomeBank會是首選軟體。</p>
   </description>
   <screenshots>
-    <screenshot width="624" type="default" height="351">http://homebank.free.fr/img/homebank-appdata.png</screenshot>
+    <screenshot>
+      <image  width="624" type="default" height="351">http://homebank.free.fr/img/homebank-appdata.png</image>
+    </screenshot>
   </screenshots>
   <url type="homepage">http://homebank.free.fr</url>
   <updatecontact>homebank_at_free.fr</updatecontact>
-</application>
\ No newline at end of file
+</component>

Comment 15 Kamil Páral 2022-09-09 08:15:31 UTC
I filed the bug in homebank upstream:
https://bugs.launchpad.net/homebank/+bug/1989171

Comment 16 Kamil Páral 2022-10-04 07:07:31 UTC
As far as I can tell, this should be fixed in HomeBank 5.5.7.

Comment 17 Fedora Update System 2022-10-09 21:28:18 UTC
FEDORA-2022-b12a5d1d6b has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-b12a5d1d6b

Comment 18 Fedora Update System 2022-10-09 21:28:19 UTC
FEDORA-2022-0bdbd94aba has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-0bdbd94aba

Comment 19 Fedora Update System 2022-10-10 10:03:38 UTC
FEDORA-2022-b12a5d1d6b has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-b12a5d1d6b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-b12a5d1d6b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Kamil Páral 2022-10-10 10:20:15 UTC
(In reply to Fedora Update System from comment #17)
> FEDORA-2022-b12a5d1d6b has been submitted as an update to Fedora 37.
> https://bodhi.fedoraproject.org/updates/FEDORA-2022-b12a5d1d6b

Fixed, thanks.

Comment 21 Fedora Update System 2022-10-10 11:50:33 UTC
FEDORA-2022-0bdbd94aba has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-0bdbd94aba`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-0bdbd94aba

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 22 Fedora Update System 2022-10-16 19:55:43 UTC
FEDORA-2022-0a35883117 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-0a35883117

Comment 23 Fedora Update System 2022-10-16 19:55:44 UTC
FEDORA-2022-1eee1a193b has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1eee1a193b

Comment 24 Fedora Update System 2022-10-16 21:13:44 UTC
FEDORA-2022-0a35883117 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-0a35883117`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-0a35883117

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 25 Fedora Update System 2022-10-16 22:33:48 UTC
FEDORA-2022-1eee1a193b has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-1eee1a193b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-1eee1a193b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 26 Fedora Update System 2022-10-24 14:09:25 UTC
FEDORA-2022-1eee1a193b has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 27 Fedora Update System 2022-11-10 22:19:22 UTC
FEDORA-2022-0a35883117 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


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