stevespringett / nist-data-mirror

A simple Java command-line utility to mirror the CVE JSON data from NIST.
Apache License 2.0
206 stars 93 forks source link

Implemented validCheck function #108

Closed falco9 closed 2 years ago

falco9 commented 2 years ago

validCheck function compares the hashcode in the meta file with a generated hashcode of the json file. If they match, the file is valid, if not, the download will be retried 2 more times.

see comment #78 https://github.com/stevespringett/nist-data-mirror/issues/78

AndreasIgelCC commented 2 years ago

@stevespringett: Would be great, if you have a look on this. We had some issues with connections during download and then the cache gets invalid.

stevespringett commented 2 years ago

Thanks for the PR.

dwaynewilliams commented 2 years ago

@falco9 can you please update your PR to remove the hardcoded Windows path separators?