]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Fix bug: data can be stale when the local-repository is deleted.
authorpcarana <pc.moreno2099@gmail.com>
Sat, 17 Oct 2020 01:27:26 +0000 (20:27 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Sat, 17 Oct 2020 01:27:26 +0000 (20:27 -0500)
commitdefa389006f882cdd36e9438aac4807f36445f99
tree104c5499e46bf4bd1b572a133c595b6a1aabdde2
parentfc6a0d25b8fcd11ec76c450cc1659c2db1d912a6
Fix bug: data can be stale when the local-repository is deleted.

The data remained the same until an RRDP server had a delta update; in such case the updated files weren't found and the snapshot was processed, so the local cache was built again. In case that the RRDP server didn't had updates, the root manifest wasn't found and the whole validation cycle results were discarded.

Now, when the manifest isn't found and the RRDP has no updates, force the snapshot processing to assure that the error isn't of the RP. Also, update the daemon that cleans up the RRDP visited URIs, so that it deletes the files from its corresponding workspace.
15 files changed:
src/common.c
src/common.h
src/delete_dir_daemon.c
src/delete_dir_daemon.h
src/object/certificate.c
src/rrdp/db/db_rrdp.c
src/rrdp/db/db_rrdp_uris.c
src/rrdp/db/db_rrdp_uris.h
src/rrdp/rrdp_loader.c
src/rrdp/rrdp_loader.h
src/rrdp/rrdp_parser.c
src/rrdp/rrdp_parser.h
src/uri.c
src/visited_uris.c
src/visited_uris.h