Support for ia:// (without need of ffspec dependency) - #22
Merged
Merged
Conversation
lfoppiano
changed the base branch from
feat/test-suite
to
feature/create-testing-warcs
September 8, 2026 07:50
lfoppiano
changed the base branch from
feature/create-testing-warcs
to
feat/test-suite
September 8, 2026 07:50
This was referenced Sep 8, 2026
lfoppiano
marked this pull request as ready for review
September 9, 2026 07:43
wumpus
self-requested a review
September 14, 2026 15:30
wumpus
approved these changes
Sep 14, 2026
lfoppiano
force-pushed
the
feat/ia-scheme
branch
from
September 14, 2026 15:43
454f05e to
86decb2
Compare
lfoppiano
force-pushed
the
feat/ia-scheme
branch
2 times, most recently
from
September 15, 2026 20:05
3e1c443 to
04f37aa
Compare
…s by default on CI (not the long tests) but not locally
lfoppiano
force-pushed
the
feat/ia-scheme
branch
from
September 16, 2026 13:39
b5936a7 to
4cab500
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements the issue #16 (it ships additional changes that are supposed to go into ffspec).
The implementation does rely on the HTTP backend, and not on the S3 one. The reason is due to the limitation in the IA service that does not allow ranged queries.
The workaround (implemented) is to not use IA's S3 endpoint at all.
ia://item/fileis rewritten to https://archive.org/download/item/file and read as ordinary HTTP.Requesting a resource via the s3 path, the service returns 200 OK with the full 1.6 GB body instead of 206:
The IA service provides Accept-Ranges: bytes, but IA's own documentation states "HTTP 1.1 Range headers are ignored" (see: https://archive.org/developers/ias3.html#how-this-is-different-from-normal-s3)
I could not find the sources of the IA service, but looks like there are other incompatibilities with S3 (307 mismatch with the S3 convention). Result: using botocore will result in having thrown an exception of unbounded recursion.