Bug 2207990

Summary: Correct content of fedora-popular.xml/fedora-categories.xml files
Product: [Fedora] Fedora Reporter: Milan Crha <mcrha>
Component: appstream-dataAssignee: Richard Hughes <rhughes>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: aday, rhughes
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-22 11:32:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milan Crha 2023-05-17 14:22:33 UTC
There are installed files:

   fedora-popular.xml
   fedora-categories.xml

into 

   /usr/share/app-info/xmls/

and they currently contain 

   <component type="desktop">

components, but it's wrong, it should rather read:

   <component merge="append">

. The difference is that the former pretends to be an application definition, while the later says to merge the added properties into the applications, if they exist.

This misinterpretation influences counts of the apps in the categories in the gnome-software.

Related upstream discussion:
https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2053#note_1747018

Reproducible: Always

Comment 1 Aoife Moloney 2024-05-22 11:04:52 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

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

Comment 2 Milan Crha 2024-05-22 11:22:23 UTC
This is still true, the files only moved to /usr/share/swcatalog/xml/.

Comment 3 Richard Hughes 2024-05-22 11:32:07 UTC
commit 695edaa4e889b0247424920011c1d38c324207c9 (HEAD -> main)
Author: Richard Hughes <richard>
Date:   Wed May 22 12:31:28 2024 +0100

    Use a merge type of append
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2207990

-- I'll build the metadata with that next week.