bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #54472] appdata.xml string extraction broken when root component ha


From: Bruno Haible
Subject: [bug #54472] appdata.xml string extraction broken when root component has namespace
Date: Fri, 11 Oct 2024 07:04:01 -0400 (EDT)

Update of bug #54472 (group gettext):

                  Status:                    None => Fixed                  
             Assigned to:                    None => haible                 

    _______________________________________________________

Follow-up Comment #4:

Thanks for the report.

Indeed, the AppData / Metainfo specification at
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html says
"The XML in metainfo files does not need any XML namespace, and adding one
should generally be avoided. If you want to use a namespace though (maybe in
case you want to embed the data in other contexts), the xmlns should be
https://specifications.freedesktop.org/metainfo/1.0.";

Fixed through
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=70c654cec7890690a96c4bef72d5adfe8c550c47
.

Note that the method recommended for validation of AppData files in
https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/, namely
"appstream-util validate-relax file.appdata.xml", is not strict enough: it
allows any namespace, not only the missing namespace and
"https://specifications.freedesktop.org/metainfo/1.0";. See:

<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop" xmlns="https://example.com/any/namespace";>
  <id>org.gnome.Characters.desktop</id>
  <name>GNOME Characters</name>
  <summary>Character map application</summary>
  <licence>CC0</licence>
  <description>
    <p>Happy new year!</p>
  </description>
</component>


$ appstream-util validate-relax mf.appdata.xml 
mf.appdata.xml: OK




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54472>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]