Skip to content

Comments

test: add third option for CAR non-existing path responses#245

Merged
lidel merged 2 commits intomainfrom
fix-car-404s
Sep 1, 2025
Merged

test: add third option for CAR non-existing path responses#245
lidel merged 2 commits intomainfrom
fix-car-404s

Conversation

@lidel
Copy link
Member

@lidel lidel commented Sep 1, 2025

add temporary support for legacy 200 with X-Stream-Error header behavior when missing blocks are detected during streaming. this ensures compatibility with current boxo/gateway implementations that defer header setting.

relates to ipfs/boxo@1ac242a6 which fixes CAR handler to properly return 404 status codes instead of 200 with X-Stream-Error

TODO: remove once Kubo ships with ipfs/boxo#1019

add temporary support for legacy 200 with X-Stream-Error header behavior
when missing blocks are detected during streaming. this ensures compatibility
with current boxo/gateway implementations that defer header setting.

relates to ipfs/boxo@1ac242a6 which fixes CAR handler to properly return
404 status codes instead of 200 with X-Stream-Error

TODO: remove once Kubo ships with ipfs/boxo#1019
document temporary support for legacy X-Stream-Error header behavior
in CAR responses for non-existing paths
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2025

v0.8.3

Changed

  • Added temporary support for legacy 200 with X-Stream-Error header behavior when missing blocks are detected during CAR streaming. This ensures compatibility with current boxo/gateway implementations that defer header setting. This third option will be removed once implementations ship with ipfs/boxo#1019. #245

@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2025

Results against Kubo latest:
(check the action's summary for the full results)

Summary

Tests Failures Errors Skipped
1320 0 0 0

@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2025

Results against Kubo master:
(check the action's summary for the full results)

Summary

Tests Failures Errors Skipped
1320 0 0 0

@lidel lidel marked this pull request as ready for review September 1, 2025 19:28
@lidel lidel merged commit 026cdc4 into main Sep 1, 2025
12 checks passed
@lidel lidel deleted the fix-car-404s branch September 1, 2025 19:29
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.

1 participant