Robie, I updated the bug title and test case. At this point, I do not believe the "appstream" source package needs to be updated to fix this issue. We can ignore bug 2006110 for this issue.
** Description changed: [ Impact ] - * Currently, any application that is using modern AppStream metadata containing <em>/<code> tags in their description, and that is still using the deprecated appstream-glib will fail to parse this data. - * Unfortunately, this affects some high-visibility applications now, like Flatpak, which are unable to perform proper searches. See https://github.com/flatpak/flatpak/issues/5434 for reference. - * This kind of issue may potentially affect more tools as well. + * Currently, any application that is using modern AppStream metadata containing <em>/<code> tags in their description, and that is still using the deprecated appstream-glib will fail to parse this data. + * Unfortunately, this affects some high-visibility applications now, like Flatpak, which are unable to perform proper searches. See https://github.com/flatpak/flatpak/issues/5434 for reference. + * This kind of issue may potentially affect more tools as well. [ Test Plan ] - * Run "flatpak search firefox" - - Observe the failure. - * Update to the patched version - * Run "flatpak search firefox" again, it should work now. + 1. Open a terminal and run + sudo apt install flatpak + + 2. Then run + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + + 3. Run + flatpak search meld + + The broken output may look something like: + F: Failed to parse /var/lib/flatpak/appstream/flathub/x86_64/active/appstream.xml.gz file: Error on line 1960 char 29: <p> already set ' + Organic Maps is a free Android & iOS offline maps app for travelers, + tourists, hikers, and cyclists. + It uses crowd-sourced OpenStreetMap data and is developed with love by + ' and tried to replace with ' (' + No matches found + + 4. Install the updated appstream-glib packages. + + 5. Restart your computer then log back in. + + 6. Open a terminal and run + flatpak search firefox + + The working output looks something like + $ flatpak search meld + Name Description Application ID Version Branch Remotes + Meld Compare and merge your files org.gnome.meld 3.22.0 stable flathub [ Where problems could occur ] - * The reverse-dependencies for appstream-glib in Ubuntu Jammy are: - flatpak-tests - unity - libmalcontent-ui-0-0 - libappstream-glib-dev - gir1.2-appstreamglib-1.0 - appstream-util - flatpak + * The reverse-dependencies for appstream-glib in Ubuntu Jammy are: + flatpak-tests + unity + libmalcontent-ui-0-0 + libappstream-glib-dev + gir1.2-appstreamglib-1.0 + appstream-util + flatpak - * Flatpak should continue to work, and there should be no new errors in + * Flatpak should continue to work, and there should be no new errors in GNOME/Unity. [ Other Info ] - - * None. Updating this should mainly help Flatpak users and should have no ill effects on any other component of the OS. + + * None. Updating this should mainly help Flatpak users and should have + no ill effects on any other component of the OS. ** Description changed: [ Impact ] * Currently, any application that is using modern AppStream metadata containing <em>/<code> tags in their description, and that is still using the deprecated appstream-glib will fail to parse this data. * Unfortunately, this affects some high-visibility applications now, like Flatpak, which are unable to perform proper searches. See https://github.com/flatpak/flatpak/issues/5434 for reference. * This kind of issue may potentially affect more tools as well. [ Test Plan ] 1. Open a terminal and run - sudo apt install flatpak + sudo apt install flatpak 2. Then run flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo 3. Run flatpak search meld The broken output may look something like: F: Failed to parse /var/lib/flatpak/appstream/flathub/x86_64/active/appstream.xml.gz file: Error on line 1960 char 29: <p> already set ' - Organic Maps is a free Android & iOS offline maps app for travelers, - tourists, hikers, and cyclists. - It uses crowd-sourced OpenStreetMap data and is developed with love by - ' and tried to replace with ' (' + Organic Maps is a free Android & iOS offline maps app for travelers, + tourists, hikers, and cyclists. + It uses crowd-sourced OpenStreetMap data and is developed with love by + ' and tried to replace with ' (' No matches found 4. Install the updated appstream-glib packages. 5. Restart your computer then log back in. 6. Open a terminal and run flatpak search firefox The working output looks something like - $ flatpak search meld Name Description Application ID Version Branch Remotes Meld Compare and merge your files org.gnome.meld 3.22.0 stable flathub [ Where problems could occur ] * The reverse-dependencies for appstream-glib in Ubuntu Jammy are: flatpak-tests unity libmalcontent-ui-0-0 libappstream-glib-dev gir1.2-appstreamglib-1.0 appstream-util flatpak * Flatpak should continue to work, and there should be no new errors in GNOME/Unity. [ Other Info ] * None. Updating this should mainly help Flatpak users and should have no ill effects on any other component of the OS. ** Changed in: appstream-glib (Ubuntu) Status: New => Fix Released ** Changed in: appstream-glib (Ubuntu Jammy) Importance: Undecided => High ** Changed in: appstream-glib (Ubuntu) Importance: Undecided => High ** Changed in: appstream-glib (Ubuntu Jammy) Status: New => In Progress ** Changed in: appstream-glib (Ubuntu Jammy) Assignee: (unassigned) => Jeremy Bícha (jbicha) ** Description changed: [ Impact ] * Currently, any application that is using modern AppStream metadata containing <em>/<code> tags in their description, and that is still using the deprecated appstream-glib will fail to parse this data. * Unfortunately, this affects some high-visibility applications now, like Flatpak, which are unable to perform proper searches. See https://github.com/flatpak/flatpak/issues/5434 for reference. * This kind of issue may potentially affect more tools as well. [ Test Plan ] 1. Open a terminal and run sudo apt install flatpak 2. Then run flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo 3. Run flatpak search meld The broken output may look something like: F: Failed to parse /var/lib/flatpak/appstream/flathub/x86_64/active/appstream.xml.gz file: Error on line 1960 char 29: <p> already set ' Organic Maps is a free Android & iOS offline maps app for travelers, tourists, hikers, and cyclists. It uses crowd-sourced OpenStreetMap data and is developed with love by ' and tried to replace with ' (' No matches found 4. Install the updated appstream-glib packages. 5. Restart your computer then log back in. 6. Open a terminal and run flatpak search firefox The working output looks something like Name Description Application ID Version Branch Remotes Meld Compare and merge your files org.gnome.meld 3.22.0 stable flathub [ Where problems could occur ] * The reverse-dependencies for appstream-glib in Ubuntu Jammy are: flatpak-tests unity libmalcontent-ui-0-0 libappstream-glib-dev gir1.2-appstreamglib-1.0 appstream-util flatpak * Flatpak should continue to work, and there should be no new errors in GNOME/Unity. [ Other Info ] * None. Updating this should mainly help Flatpak users and should have no ill effects on any other component of the OS. + + * This issue was fixed upstream in appstream-glib 0.8.1 which is + available in Ubuntu 22.10 and newer releases. ** Summary changed: - [SRU] Update to 0.7.18-2ubuntu0.1 for jammy + [SRU] appstream-glib can't handle em or code tags, breaking Flatpak ** Summary changed: - [SRU] appstream-glib can't handle em or code tags, breaking Flatpak + [SRU] appstream-glib can't handle em or code tags, breaking Flathub -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to appstream-glib in Ubuntu. https://bugs.launchpad.net/bugs/2023215 Title: [SRU] appstream-glib can't handle em or code tags, breaking Flathub To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/appstream-glib/+bug/2023215/+subscriptions -- desktop-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
