FAILURE MAP
← Case archive

FA-6701 / HTTP ranges / Open access

If-Range requires exact strong entity tags · case 01

If-Range requires exact strong entity tags.

Verified by executionVariant 1 · 4 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The faulty implementation uses `request == current` for the if-range-weak decision.

THE FAILURE

The faulty implementation uses `request == current` for the if-range-weak decision.

Unsuccessful approach: The attempted repair uses `request.removeprefix('W/') == current.removeprefix('W/')` and still violates a separate fixture.

Case contract

If-Range requires exact strong entity tags: return the result specified by the explicit input/output boundary fixtures.

Why this case matters

This deterministic http ranges model isolates the if-range-weak policy at a network component boundary.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import ipaddress
import re
from urllib.parse import urlsplit, urljoin
N = 1
observations = []
def solve(request, current):
    return request == current
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ['check(\'fixture 1\', solve(\'W/"a"\', \'W/"a"\'), False)', 'check(\'fixture 2\', solve(\'"a"\', \'"a"\'), True)', 'check(\'fixture 3\', solve(\'W/"a"\', \'"a"\'), False)', 'check(\'fixture 4\', solve(\'"b"\', \'"a"\'), False)']
for _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:
    exec(_line)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
fixture 2TrueTruePassed
fixture 3FalseFalsePassed
fixture 4FalseFalsePassed
fixture 1TrueFalseFailed

SHA-256 / 31fe48181ddbfa1f962b9207b6fab18067c8492bcaa131d4282d3f2a94e890ce

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import ipaddress
import re
from urllib.parse import urlsplit, urljoin
N = 1
observations = []
def solve(request, current):
    return request.removeprefix('W/') == current.removeprefix('W/')
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ['check(\'fixture 1\', solve(\'W/"a"\', \'W/"a"\'), False)', 'check(\'fixture 2\', solve(\'"a"\', \'"a"\'), True)', 'check(\'fixture 3\', solve(\'W/"a"\', \'"a"\'), False)', 'check(\'fixture 4\', solve(\'"b"\', \'"a"\'), False)']
for _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:
    exec(_line)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
fixture 2TrueTruePassed
fixture 3TrueFalseFailed
fixture 4FalseFalsePassed
fixture 1TrueFalseFailed

SHA-256 / 25df5f9d72e411ce51cc73926be314cf47d79bfac760ebfd571ae0cfb3a4aff8

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 4 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.

Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.

Member access is invitation-based. Sign in with your invited account to inspect the repair.

Sign in to the archive ↗

Verification & scope

Bounded deterministic policy model over validated inputs; not a complete protocol stack or an interoperability claim. The five variants rotate the same explicit fixture set. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.

Observations recorded using Python 3.12.14 at 2026-09-29T14:38:04.376251+00:00.

Case digest / 99e9199395d15b8efec1b3638530cef3d315d34048000fae712f0019451eb1e2