René's URL Explorer Experiment


Title: lab-ops-hub: container validator returns dot segments, host case and default ports un-normalized — fetcher requests a different path than the Worker · Issue #633 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: container validator returns dot segments, host case and default ports un-normalized — fetcher requests a different path than the Worker · Issue #633 · developing-today/code

X Title: lab-ops-hub: container validator returns dot segments, host case and default ports un-normalized — fetcher requests a different path than the Worker · Issue #633 · developing-today/code

Description: Finding The container validator returns the crawl target without the WHATWG normalizations the Worker validator applies, so for the same accepted target the two crawlers record — and fetch — different URLs: Dot segments are never resolve...

Open Graph Description: Finding The container validator returns the crawl target without the WHATWG normalizations the Worker validator applies, so for the same accepted target the two crawlers record — and fetch — differ...

X Description: Finding The container validator returns the crawl target without the WHATWG normalizations the Worker validator applies, so for the same accepted target the two crawlers record — and fetch — differ...

Opengraph URL: https://github.com/developing-today/code/issues/633

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: container validator returns dot segments, host case and default ports un-normalized — fetcher requests a different path than the Worker","articleBody":"## Finding\n\nThe container validator returns the crawl target without the WHATWG\nnormalizations the Worker validator applies, so for the same accepted\ntarget the two crawlers record — and fetch — different URLs:\n\n1. **Dot segments are never resolved.** Literal `.` / `..` segments and\n   their percent-encoded spellings (`%2e`, `.%2e`, `%2e.`, `%2e%2e`, any\n   case) are returned verbatim by the container and sent verbatim on the\n   wire by its fetcher. The Worker resolves them per the WHATWG URL path\n   rules before fetching.\n2. **Host case is preserved.** The Worker lowercases the host in the\n   returned URL; the container returns `EXAMPLE.COM` as spelled.\n3. **Default ports are preserved**, including leading-zero spellings:\n   the Worker drops `:80` / `:443` (and `:080` / `:0080`); the container\n   returns them verbatim.\n\n`validate_crawl_url` (`pkgs/lab-ops-hub/container/app.py:77`, returns at\n:399 and :439) returns `_url_with_encoded_components(raw …)` — the raw\nspelling with only the character-encoding fixes of #614/#615/#618. No\nstep resolves path segments, lowercases the host, or drops a default\nport. The Worker validator (`pkgs/lab-ops-hub/src/lib.ts:130`) returns\n`u.toString()` (:182, :188), the fully WHATWG-normalized form.\n\n## Evidence\n\nVerified this run on main `00bb59d5` (lab-ops-hub at `07a16b76`),\ndriving both real validators (Python `validate_crawl_url`; Worker's\n`validateCrawlUrl` under Bun):\n\n| Input | Container returns | Worker returns |\n|---|---|---|\n| `http://example.com/a/../b` | `http://example.com/a/../b` | `http://example.com/b` |\n| `http://example.com/a/./b` | `http://example.com/a/./b` | `http://example.com/a/b` |\n| `http://example.com/%2e%2e/admin` | `http://example.com/%2e%2e/admin` | `http://example.com/admin` |\n| `http://example.com/a/%2e%2e/b` | `http://example.com/a/%2e%2e/b` | `http://example.com/b` |\n| `http://example.com/%2e/%2e/x` | `http://example.com/%2e/%2e/x` | `http://example.com/x` |\n| `http://example.com/a/%2E/b` | `http://example.com/a/%2E/b` | `http://example.com/a/b` |\n| `HTTP://EXAMPLE.COM/Path` | `http://EXAMPLE.COM/Path` | `http://example.com/Path` |\n| `http://example.com:80/x` | `http://example.com:80/x` | `http://example.com/x` |\n| `https://example.com:443/x` | `https://example.com:443/x` | `https://example.com/x` |\n| `http://example.com:080/x` | `http://example.com:080/x` | `http://example.com/x` |\n| `http://user:pass@EXAMPLE.com:80/` | `http://user:pass@EXAMPLE.com:80/` | `http://user:pass@example.com/` |\n\nFetcher consequence, reproduced with the app's own `_fetch_crawl`\n(`app.py:827`) against a local HTTP server (proxy env unset): for\n`http://127.0.0.1:\u003cport>/a/../b` the server receives the request target\n`/a/../b` verbatim, and for `/%2e%2e/admin` it receives `/%2e%2e/admin`\nverbatim. The Worker's WHATWG `fetch` requests `/b` and `/admin`. An\norigin (or any proxy/WAF in front of it) that routes on the raw request\ntarget therefore serves the container a different resource than the\nWorker for the same validated target, and `%2e%2e` spellings are the\nclassic path-confusion form when one layer resolves them and another\ndoes not. Redirect targets inherit the divergence: the container's\n`_ValidatingRedirectHandler` validates the raw `Location` value and\nfetches the container's returned form.\n\nVerdicts agree throughout (every spelling above is accepted by both\nvalidators, and blocked-host controls — `LOCALHOST`, `127.0.0.1:080` —\nare refused by both): this is a fetched-URL identity divergence, not an\naccept/refuse one. Minor opposite-direction note from the same battery:\nempty query/fragment markers — the Worker keeps a trailing `?` / `#`\n(`http://example.com/x?`), the container drops them; folding that into\nthe same normalization pass settles it either way.\n\nDedup: searches for \"dot segment\", \"default port\", \"lowercase host\"\nand \"%2e\" return no issue covering this; the closed #614/#615/#618\nseries covers character *encoding* on the returned URL only. The\nvalidator pair exists only in this repo (grep of the\nopencode/openchamber/nix clones is empty).\n\n## Why it matters\n\nThe container and the Worker fallback are supposed to crawl the same\ntarget; the last several fixes in this area (#577/#586/#611/#614/#615/\n#618) each aligned one piece of the returned URL so \"the URL the\nfetcher fetches\" is the URL the Worker fetches. Path identity is the\nremaining piece: today a target spelled with dot segments — including\nthe percent-encoded traversal spelling — is fetched as two different\npaths depending on which crawler serves it, so crawl results (status,\nbody, recorded URL) differ by crawler for reasons invisible to callers.\n\n## Acceptance criteria\n\n- `validate_crawl_url` returns the WHATWG-normalized form for the\n  battery above: dot segments (literal and `%2e` spellings, any case,\n  including a trailing dot segment's trailing-slash semantics) resolved,\n  host lowercased, and the scheme's default port dropped (including\n  leading-zero spellings); non-default ports, empty path segments\n  (`//`), query and fragment are preserved as WHATWG preserves them.\n- A fetcher end-to-end test shows the container requesting the resolved\n  path (`/b`, `/admin`) for dot-segment targets, matching the Worker.\n- A container-vs-Worker differential over the battery (plus the\n  existing validator batteries) shows byte-identical returned URLs,\n  with the existing Python and TS suites still passing.\n- Care with ordering: normalization must not double-decode\n  percent-encodings the #529/#615/#618 steps produced (e.g. a literal\n  `%252e` segment is data, not a dot segment).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-23T02:00:54Z","url":"https://github.com/developing-today/code/issues/633"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:312ad6f2-07c7-35d5-a739-c82fc4b498fc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC1E4:74E58:A6A2E0:DF72BB:6B064233
html-safe-nonceb56da7aeb08059135f0f8e2cec9680288e63073531cabe068be5e36221fca533
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUU0Ojc0RTU4OkE2QTJFMDpERjcyQkI6NkIwNjQyMzMiLCJ2aXNpdG9yX2lkIjoiODk1MzA5MDIwMTk3OTYwMTQ1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbd3bc33bd8a7131281178b51d085d32e487661a8d5462b1fef11e1138a257737
hovercard-subject-tagissue:5990535465
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/633/issue_layout
twitter:imagehttps://opengraph.githubassets.com/29b11b0421b48bb2fa13a80c1604ad100ff7177270e0c6a5b00d2b5338683fab/developing-today/code/issues/633
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/29b11b0421b48bb2fa13a80c1604ad100ff7177270e0c6a5b00d2b5338683fab/developing-today/code/issues/633
og:image:altFinding The container validator returns the crawl target without the WHATWG normalizations the Worker validator applies, so for the same accepted target the two crawlers record — and fetch — differ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseac613d3698d3d8565651455086e1f74da07bf277
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/633#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F633
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F633
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/633
Reloadhttps://github.com/developing-today/code/issues/633
Reloadhttps://github.com/developing-today/code/issues/633
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests171 (171)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/633
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/633
#644https://github.com/developing-today/code/pull/644
lab-ops-hub: container validator returns dot segments, host case and default ports un-normalized — fetcher requests a different path than the Workerhttps://github.com/developing-today/code/issues/633#top
#644https://github.com/developing-today/code/pull/644
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/633#issue-5990535465
#614https://github.com/developing-today/code/issues/614
#615https://github.com/developing-today/code/issues/615
#618https://github.com/developing-today/code/issues/618
#614https://github.com/developing-today/code/issues/614
#615https://github.com/developing-today/code/issues/615
#618https://github.com/developing-today/code/issues/618
#577https://github.com/developing-today/code/issues/577
#586https://github.com/developing-today/code/issues/586
#611https://github.com/developing-today/code/issues/611
#614https://github.com/developing-today/code/issues/614
#615https://github.com/developing-today/code/issues/615
#618https://github.com/developing-today/code/issues/618
lab-ops-hub: container validator blanket-refuses percent-encoded hosts the Worker validator decodes and accepts — public spellings (%65xample.com, 8%2e8%2e8%2e8) diverge, including as redirect targets #529https://github.com/developing-today/code/issues/529
lab-ops-hub: container validator returns non-ASCII path/query/userinfo verbatim — fetcher raises UnicodeEncodeError on URLs both validators accept #615https://github.com/developing-today/code/issues/615
lab-ops-hub: container validator returns WHATWG-encodable ASCII punctuation verbatim outside the host — path/query/fragment/userinfo " < > ^ ` { } go on the request line raw while the Worker fetches the encoded form #618https://github.com/developing-today/code/issues/618
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/633#event-34010936774
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#644https://github.com/developing-today/code/pull/644
on Oct 23, 2026https://github.com/developing-today/code/issues/633#event-34017173163
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/633#event-34017173369
Merge pull request #644 from developing-today/sweep/633-dotseg-hostca…https://github.com/developing-today/code/commit/7295601a4bfd4016da9d3e7cf6858c67288408fa
#644https://github.com/developing-today/code/pull/644
7295601https://github.com/developing-today/code/commit/7295601a4bfd4016da9d3e7cf6858c67288408fa
https://github.com/apps/developing-today-fleet
developing-today-fleethttps://github.com/apps/developing-today-fleet
on Nov 24, 2026https://github.com/developing-today/code/issues/633#issuecomment-7124554794
developing.today fleethttps://kaneo.security.cab
PR #644 — fix(lab-ops-hub): return WHATWG-normalized URLs from the container validator (#633)https://github.com/developing-today/code/pull/644
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/633
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/633
dezren39https://github.com/dezren39
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.