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.

image

@bhawana11 bhawana11 changed the title Echo g online access url bkk OnlineAccessUrls and OnlineResource (echo-g) Oct 17, 2025
@lavanya3k
Copy link
Collaborator

lavanya3k commented Oct 17, 2025

Tested in the local branch: It works.

Example: G2488091813-CDDIS (echo-g) and test file.

Expected output:
Screenshot 2025-10-17 at 2 55 59 PM

Screenshot 2025-10-17 at 3 00 15 PM

@lavanya3k lavanya3k mentioned this pull request Oct 17, 2025
@lavanya3k lavanya3k merged commit 4b88260 into dev Oct 17, 2025
1 check passed
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.

4 participants