Skip to content

validate_metadata: reject future lastVerified timestamps #183

Description

@hbelmiro

check_date_time() in scripts/validate_metadata/validate_metadata.py currently allows lastVerified values in the future because (now - dt).days becomes negative and will never be >= 365. This lets assets bypass the "fresh within 12 months" policy and can also cause check_component_freshness.py to treat future-dated assets as extra-fresh (negative age).

Future timestamps should be explicitly rejected.

Reference: #180 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions