Skip to content

Fix CA/CRL refresh retriggering every run on 304#493

Open
houssemexo26 wants to merge 1 commit into
OpenVoxProject:mainfrom
houssemexo26:main
Open

Fix CA/CRL refresh retriggering every run on 304#493
houssemexo26 wants to merge 1 commit into
OpenVoxProject:mainfrom
houssemexo26:main

Conversation

@houssemexo26

Copy link
Copy Markdown

When the server responds with 304 Not Modified, ca_last_update and crl_last_update were not updated. Since these read the mtime of the CA cert / CRL file on disk, the stale timestamp caused needs_refresh? to return true on every subsequent run, ignoring ca_refresh_interval and crl_refresh_interval.

Fix by updating the timestamp on 304 so the interval is respected.

Short description

Checklist

I have:

@houssemexo26

Copy link
Copy Markdown
Author

@bastelfreak, could you look at my PR please? Thanks

@corporate-gadfly

Copy link
Copy Markdown
Contributor

LGTM, but a dupe of #440 .

When the server responds with 304 Not Modified, ca_last_update and
crl_last_update were not updated. Since these read the mtime of the
CA cert / CRL file on disk, the stale timestamp caused needs_refresh?
to return true on every subsequent run, ignoring ca_refresh_interval
and crl_refresh_interval.

Fix by updating the timestamp on 304 so the interval is respected.

Signed-off-by: Houssem eXo <hbenali@exoplatform.fr>
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.

2 participants