| Summary: | Error loading AppData file: failed to parse (but passes appstream-util) | ||
|---|---|---|---|
| Product: | [Developer tools] Qt/KDE Flatpak Runtime | Reporter: | Tobias Menzi <kde-bugs> |
| Component: | general | Assignee: | Aleix Pol <aleixpol> |
| Status: | CLOSED NOT A BUG | ||
| Severity: | normal | CC: | aacid, nicolas.fella |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
A small appdata.xml for reproduction
A small manifest for reproduction Valid appdata.xml file Valid appdata.xml file Ultra-valid appdata.xml file |
||
|
Description
Tobias Menzi
2022-10-31 19:25:55 UTC
Created attachment 153362 [details]
A small appdata.xml for reproduction
Created attachment 153363 [details]
A small manifest for reproduction
I don't understand why you have filed this bug here. > I don't understand why you have filed this bug here. The issue is about the KDE Flatpak runtime. From the Flatpak docs[0]: "The KDE runtime is maintained here[1]." In the README of the referenced repo[1], you can read this[2]: "Issues can be reported here: https://bugs.kde.org/enter_bug.cgi?product=Qt%2FKDE%20Flatpak%20Runtime" And here I am, having clicked on this link and reported the issue there. Give me hints to where I went wrong? [0]: https://docs.flatpak.org/en/latest/available-runtimes.html#kde [1]: https://invent.kde.org/packaging/flatpak-kde-runtime [2]: https://invent.kde.org/packaging/flatpak-kde-runtime#getting-to-grips Your appstream file is invalid. This has nothing to do with the KDE runtime. In particular you have list items without an associated list. Also b tags are not supported by appstream. See https://freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-description > Your appstream file is invalid.
This is true indeed. Thanks for catching.
Unfortunately, the unexpected behavior does not disappear after fixing. I've attached a fixed appdata.xml, which still triggers this error.
If I've understood the spec you linked correctly, then a <ul> in a <p> is not allowed either. I did try to move the list out of the paragraph, but the same behavior still occurs. In fact, it seems as if a <li> can only contain max. 1 <em> tag.
Created attachment 153382 [details]
Valid appdata.xml file
Created attachment 153383 [details]
Valid appdata.xml file
Uploaded wrong file.
appstreamcli validate org.example.repro.appdata.xml gives I: org.example.repro:~: content-rating-missing E: org.example.repro:~: desktop-app-launchable-missing E: org.example.repro:14: description-para-markup-invalid ul ? Validation failed: errors: 2, infos: 1, pedantic: 1 Created attachment 153386 [details]
Ultra-valid appdata.xml file
Fixed all the (unrelated) appstreamcli validate errors.
Error 1 (desktop-app-launchable-missing) is unrelated. Fixed it nevertheless in the new appdata.xml version.
Error 2 is what I've written about in the previous message:
> I did try to move the list out of the paragraph, but the same behavior still occurs.
The new appdata.xml now also passes appstreamcli validate with no errors AND THE BUG STILL OCCURS.
Please do not just close this issue, as the bug is still present.
Our Sdks are still based on 21.08, if you use runtime: org.freedesktop.Platform runtime-version: '21.08' you'll get the same error, this is not our bug. |