Skip to content
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

Handle URLs that respond with 301 redirect #438

Closed
dos1 opened this issue Oct 8, 2022 · 2 comments
Closed

Handle URLs that respond with 301 redirect #438

dos1 opened this issue Oct 8, 2022 · 2 comments

Comments

@dos1
Copy link

dos1 commented Oct 8, 2022

appstream-util validate fails on correct URLs that respond with 301 redirect to requested resource:

(appstream-util:2314270): As-DEBUG: 18:24:58.861: run appstream-util: validate
com.agatanawrot.karambola.metainfo.xml: (appstream-util:2314270): As-DEBUG: 18:24:58.866: checking https://holypangolin.com/stuff/karambola/screenshots/1.jpg
(appstream-util:2314270): As-DEBUG: 18:24:59.114: Adding file-invalid '<screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/1.jpg]'
(appstream-util:2314270): As-DEBUG: 18:24:59.114: checking https://holypangolin.com/stuff/karambola/screenshots/2.jpg
(appstream-util:2314270): As-DEBUG: 18:24:59.144: Adding file-invalid '<screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/2.jpg]'
(appstream-util:2314270): As-DEBUG: 18:24:59.144: checking https://holypangolin.com/stuff/karambola/screenshots/3.jpg
(appstream-util:2314270): As-DEBUG: 18:24:59.171: Adding file-invalid '<screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/3.jpg]'
(appstream-util:2314270): As-DEBUG: 18:24:59.171: checking https://holypangolin.com/stuff/karambola/screenshots/4.jpg
(appstream-util:2314270): As-DEBUG: 18:24:59.200: Adding file-invalid '<screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/4.jpg]'
(appstream-util:2314270): As-DEBUG: 18:24:59.200: checking https://holypangolin.com/stuff/karambola/screenshots/5.jpg
(appstream-util:2314270): As-DEBUG: 18:24:59.228: Adding file-invalid '<screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/5.jpg]'
(appstream-util:2314270): As-DEBUG: 18:24:59.228: checking https://holypangolin.com/stuff/karambola/screenshots/6.jpg
(appstream-util:2314270): As-DEBUG: 18:24:59.256: Adding file-invalid '<screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/6.jpg]'
FAILED:
• file-invalid          : <screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/1.jpg]
• file-invalid          : <screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/2.jpg]
• file-invalid          : <screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/3.jpg]
• file-invalid          : <screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/4.jpg]
• file-invalid          : <screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/5.jpg]
• file-invalid          : <screenshot> failed to load [https://holypangolin.com/stuff/karambola/screenshots/6.jpg]
Validation of files failed

In above example, https://holypangolin.com/stuff/karambola/screenshots/1.jpg redirects to https://dosowisko.net/holypangolin/karambola/screenshots/1.jpg.

@dos1
Copy link
Author

dos1 commented Oct 8, 2022

Oops, wrong appstream :D

@dos1 dos1 closed this as completed Oct 8, 2022
@ximion
Copy link
Owner

ximion commented Oct 9, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants