Skip to content

Conversation

@bhawana11
Copy link
Collaborator

This is a pull request for issue url_description_uniqueness_check (Granule): #322

Expected outcome:
For OnlineAccessURLs / OnlineAccessURL / URL PyQuARC should flag:
if there is ftp link in urls (Error)
if the url is broken (Error) and
if the http link is not secure (Info)

Code Changes:
Added a new check function for protocol check and secure http link in the url_validator.py and added corresponding check messages and registered new checks in check_messages.json and checks.json respectively.
Finally, added the corresponding rule mappings in rule_mapping.json.

To Reproduce:
Example concept ID: G2488091813-CDDIS --format echo-g

Problem:
While checking the broken link most of the urls returned 200 status code while visiting the url instead of downloading the data. So it was not possible to check the broken link with any granule id. To simulate a broken link scenario, temporarily hardcode a 404 response code in the health_and_status_check function in url_validator.py in line 71.

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

Successfully merging this pull request may close these issues.

5 participants