[WARC] Format WARC-IP-Address header values following the WARC community recommendations#1997
Merged
Merged
Conversation
rzo1
approved these changes
Jul 14, 2026
3 tasks
Member
|
Looks good overall! Just a couple of quick questions:
|
dpol1
approved these changes
Jul 14, 2026
Contributor
Author
|
Thanks, for the careful review, @dpol1! I'll update the PR to address your comments.
Well, it's rather enforced by the behavior of Java's InetAddress class: But very good point. Looks like, there is no recommendation how IPv4-mapped addresses are recorded. Needs clarification. For now we can keep the unit tests, I think. The unit test replicates the behavior of jwarc which archives IPv6-mapped IPv4 addresses as IPv4: Other WARC-archiving tools behave different, e.g., warcprox: But it's maybe an open question whether this is the desired behavior, cf. internetarchive/warcprox#277. |
…ity recommendations
sebastian-nagel
force-pushed
the
warc-ip-address-format
branch
from
July 14, 2026 15:33
7681586 to
c544011
Compare
…ity recommendations WARC module: add Guava dependency.
Member
|
Thanks @sebastian-nagel - looks good to me now! |
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.
Format the IP address in the WARC-IP-Address header following iipc/warc-specifications#100.
Especially, IPv6 addresses should be given in the short form specified by RFC 5952:
Current:
Expected:
Same for WARC response records.