appstream-glib icon indicating copy to clipboard operation
appstream-glib copied to clipboard

validate fails on mailto link in contact url

Open A6GibKm opened this issue 5 years ago • 3 comments

On a metainfo file with

<url type="contact">mailto:[email protected]</url>

one gets an error

app.metainfo.xml: FAILED:
• tag-invalid           : <url> does not start with 'http://' [mailto:[email protected]]
Validation of files failed

According to https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-url urls of the contact type allow for mailto links.

A6GibKm avatar Oct 04 '20 09:10 A6GibKm

That's not a valid URL, sorry.

hughsie avatar Oct 04 '20 09:10 hughsie

contact URLs of this type should allow the user to contact the developer. This could be an email address (mailto link), a webpage (e.g. an online form or a page describing how to contact the developer) or some other valid URL.

A6GibKm avatar Oct 04 '20 14:10 A6GibKm

@hughsie I am very inclined to drop the mailto: / email address thing from the spec. It's not really useful anymore in a time where most people use webmailers and quite awkward in software centers when user expect a link and then their email program opens. Also, people can still link a webpage which contains their email address.

Fun fact: I think even appstreamcli won't validate this at the moment ^^

ximion avatar Oct 04 '20 15:10 ximion