Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memento timegate: Fix for timegate in framed replay #564

Merged
merged 1 commit into from
Jun 8, 2020

Conversation

ikreymer
Copy link
Member

@ikreymer ikreymer commented Jun 8, 2020

Fixes timegate behavior in framed replay mode, so that:

  • timegate headers match timegate on content frame, (mp_/), but without memento header
  • 404s correctly reported if no match found

This results in actual lookup of the content, which is then discarded, and the top frame html is returned along with the memento headers

Motivation and Context

Should fix ukwa/ukwa-pywb#58, as well as #547, #549

Screenshots (if appropriate):

Types of changes

  • Replay fix (fixes a replay specific issue)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added or updated tests to cover my changes.
  • All new and existing tests passed.

…ectly per-memento spec,

return 404 if not found, return latest memento header. do this by performing actual response lookup,
but then returning the top frame response if succeeded. addresses ukwa/ukwa-pywb#58
@ikreymer ikreymer merged commit 3c53c27 into develop Jun 8, 2020
@ikreymer ikreymer deleted the frame-timegate branch June 8, 2020 21:44
ikreymer added a commit that referenced this pull request Jun 9, 2020
…be ignored if 'no_timegate_check' option is set (for use with derived classes)

bump version to 2.4.1
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.

TimeGate is not reporting the HTTP status correctly
1 participant