New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appstreamcli validate should enforce valid urls #145
Comments
|
I agree, but that would mean linking libappstream against libcurl or libsoup, which I would like to avoid. That's so far the only reason why this feature doesn't exist yet. |
|
I could call the curl or wget binaries though, I'll think about implementing something like that (not ideal, but at least it gives us URL validation). |
|
This is implemented now, making the validator just spawn curl for this purpose. So, I am not sure if I like this feature the way it is right now. |
|
It doesn't return an empty response here... :/ What am I missing? |
|
To make this check quick and easy to embed into ascli, the following command is used: And that returns a non-zero exist status for the bugs.kde.org URLs, maybe because the server doesn't allow header-only requests, or because there is some weird rerouting going on. |
|
Then don't pass |
|
In that case it fetches the whole document, which makes validation take longer (if we need to download the full URL every time instead of just checking the HTTP headers). |
|
Is it unbearably longer? xD Note that these checks can also be triggered in parallel... |
|
Well, that depends on how fast your internet connection is :P |
|
Well now it just fails for every KDE component, despite the URL being valid. |
|
Fix your server to return the right header/allow HEAD requests ;-) (I have one other idea that might work with curl) |
|
Try again, this worked in my tests. |
|
Confirmed this fixes the issue. |
Making sure that
<screenshot>and<url>are in an existing server and don't return 404 would be nice.The text was updated successfully, but these errors were encountered: