FA-28006 / HTTP redirects / Open access
Reject malformed redirect authorities without interpreting path text as an authority: path remains case sensitive · case 01
Reject malformed redirect authorities without interpreting path text as an authority: the path remains case sensitive branch emits an incorrect decision.
ROOT CAUSE
The path-remains-case-sensitive decision uses 'urlsplit(target).path.lower()'; this violates the stipulated controller policy.
THE FAILURE
The path-remains-case-sensitive decision uses 'urlsplit(target).path.lower()'; this violates the stipulated controller policy.
Unsuccessful approach: The partial repair uses 'urlsplit(target).path.upper()' and still fails an explicit boundary or control.
Case contract
Reject malformed redirect authorities without interpreting path text as an authority. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.
Why this case matters
Models a redirect controller decision before following a target or exposing a redirect result.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, target):
return {'request': request, 'decision': [target.startswith('//') or '://' in target, urlsplit(target).hostname or '', not target.startswith('//') or bool(urlsplit(target).netloc), urlsplit(target).path.lower(), urlsplit(target).path or '/']}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'https://EXAMPLE.test:8443/A'), {'request': '/requests/' + str(N) + '/0', 'decision': [True, 'example.test', True, '/A', '/A']})
check('fixture 2', solve('/requests/' + str(N) + '/1', '//other.test/B'), {'request': '/requests/' + str(N) + '/1', 'decision': [True, 'other.test', True, '/B', '/B']})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/a//b'), {'request': '/requests/' + str(N) + '/2', 'decision': [False, '', True, '/a//b', '/a//b']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '///missing'), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '', False, '/missing', '/missing']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'https://h.test'), {'request': '/requests/' + str(N) + '/4', 'decision': [True, 'h.test', True, '', '/']})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/MiXeD?q=x'), {'request': '/requests/' + str(N) + '/5', 'decision': [False, '', True, '/MiXeD', '/MiXeD']})
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1 | {'decision': [True, 'example.test', True, '/a', '/A'], 'request': '/requests/1/0'} | {'decision': [True, 'example.test', True, '/A', '/A'], 'request': '/requests/1/0'} | Failed |
| fixture 2 | {'decision': [True, 'other.test', True, '/b', '/B'], 'request': '/requests/1/1'} | {'decision': [True, 'other.test', True, '/B', '/B'], 'request': '/requests/1/1'} | Failed |
| fixture 3 | {'decision': [False, '', True, '/a//b', '/a//b'], 'request': '/requests/1/2'} | {'decision': [False, '', True, '/a//b', '/a//b'], 'request': '/requests/1/2'} | Passed |
| fixture 4 | {'decision': [True, '', False, '/missing', '/missing'], 'request': '/requests/1/3'} | {'decision': [True, '', False, '/missing', '/missing'], 'request': '/requests/1/3'} | Passed |
| fixture 5 | {'decision': [True, 'h.test', True, '', '/'], 'request': '/requests/1/4'} | {'decision': [True, 'h.test', True, '', '/'], 'request': '/requests/1/4'} | Passed |
| fixture 6 | {'decision': [False, '', True, '/mixed', '/MiXeD'], 'request': '/requests/1/5'} | {'decision': [False, '', True, '/MiXeD', '/MiXeD'], 'request': '/requests/1/5'} | Failed |
SHA-256 / 3568e0617295b5b791ff6f33aa148dec65cb62369455e7d27a4128a322540577
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, target):
return {'request': request, 'decision': [target.startswith('//') or '://' in target, urlsplit(target).hostname or '', not target.startswith('//') or bool(urlsplit(target).netloc), urlsplit(target).path.upper(), urlsplit(target).path or '/']}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'https://EXAMPLE.test:8443/A'), {'request': '/requests/' + str(N) + '/0', 'decision': [True, 'example.test', True, '/A', '/A']})
check('fixture 2', solve('/requests/' + str(N) + '/1', '//other.test/B'), {'request': '/requests/' + str(N) + '/1', 'decision': [True, 'other.test', True, '/B', '/B']})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/a//b'), {'request': '/requests/' + str(N) + '/2', 'decision': [False, '', True, '/a//b', '/a//b']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '///missing'), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '', False, '/missing', '/missing']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'https://h.test'), {'request': '/requests/' + str(N) + '/4', 'decision': [True, 'h.test', True, '', '/']})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/MiXeD?q=x'), {'request': '/requests/' + str(N) + '/5', 'decision': [False, '', True, '/MiXeD', '/MiXeD']})
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1 | {'decision': [True, 'example.test', True, '/A', '/A'], 'request': '/requests/1/0'} | {'decision': [True, 'example.test', True, '/A', '/A'], 'request': '/requests/1/0'} | Passed |
| fixture 2 | {'decision': [True, 'other.test', True, '/B', '/B'], 'request': '/requests/1/1'} | {'decision': [True, 'other.test', True, '/B', '/B'], 'request': '/requests/1/1'} | Passed |
| fixture 3 | {'decision': [False, '', True, '/A//B', '/a//b'], 'request': '/requests/1/2'} | {'decision': [False, '', True, '/a//b', '/a//b'], 'request': '/requests/1/2'} | Failed |
| fixture 4 | {'decision': [True, '', False, '/MISSING', '/missing'], 'request': '/requests/1/3'} | {'decision': [True, '', False, '/missing', '/missing'], 'request': '/requests/1/3'} | Failed |
| fixture 5 | {'decision': [True, 'h.test', True, '', '/'], 'request': '/requests/1/4'} | {'decision': [True, 'h.test', True, '', '/'], 'request': '/requests/1/4'} | Passed |
| fixture 6 | {'decision': [False, '', True, '/MIXED', '/MiXeD'], 'request': '/requests/1/5'} | {'decision': [False, '', True, '/MiXeD', '/MiXeD'], 'request': '/requests/1/5'} | Failed |
SHA-256 / 349b05337feac2d9d534870f306219103e64e2958c13530e73187ea413bbfe4c
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 6 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
Stipulated offline redirect policy, not a complete HTTP, browser, URL, cache, or security implementation. Numbered variants vary request correlation identity. 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:41:30.158120+00:00.
Case digest / 9d8c66f27626c1fab169bdc0735c4223c0b93e7e264232652862cd477aaacb16