open-standards/wai/http-conformance/falsify/select-no-digest.patch
Transaction Science 1cddbdad19 wai: http-conformance falsification patches and their runner
Twelve patches, each breaking one function (the content hash's domain, the
root flag, the left-subtree rule, the chunk counter, the component digest
check, the Content-Range and content-coding checks, the union, the trailing-
byte rule, the missing-digest plan, the class merge, the selection digest
test), each naming the cases that must fail. run.sh applies each to a fresh
worktree, requires the build, and requires verify to fail naming them; then
the Python mutations and the differential.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-05 07:52:43 -04:00

15 lines
568 B
Diff

# must fail: select_O7
# selection does not test the payload digest (container::select_entries)
diff --git a/wai/wai-rs/src/container.rs b/wai/wai-rs/src/container.rs
index aeb5d235..7fefc8da 100644
--- a/wai/wai-rs/src/container.rs
+++ b/wai/wai-rs/src/container.rs
@@ -2670,7 +2670,7 @@ pub fn select_entries<V>(
skipped.push((index, why));
continue;
}
- if !digest_ok(index, meta) {
+ if false && !digest_ok(index, meta) {
skipped.push((index, Skip::ComponentDigest));
continue;
}