René's URL Explorer Experiment


Title: lab-ops-hub: container validator returns UTS-46 ignored codepoints in the host it judged without them — returned URL differs from the Worker, and U+180E cannot be IDNA-encoded at fetch time · Issue #652 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: container validator returns UTS-46 ignored codepoints in the host it judged without them — returned URL differs from the Worker, and U+180E cannot be IDNA-encoded at fetch time · Issue #652 · developing-today/code

X Title: lab-ops-hub: container validator returns UTS-46 ignored codepoints in the host it judged without them — returned URL differs from the Worker, and U+180E cannot be IDNA-encoded at fetch time · Issue #652 · developing-today/code

Description: Problem The container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) judges a host in its UTS-46-mapped form — the _UTS46_IGNORED codepoints (app.py lines 55-58: U+00AD, U+034F, U+180E, U+200B, U+FEFF, U+2060-U+2064, ....

Open Graph Description: Problem The container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) judges a host in its UTS-46-mapped form — the _UTS46_IGNORED codepoints (app.py lines 55-58: U+00AD, U+034F, ...

X Description: Problem The container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) judges a host in its UTS-46-mapped form — the _UTS46_IGNORED codepoints (app.py lines 55-58: U+00AD, U+034F, ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: container validator returns UTS-46 ignored codepoints in the host it judged without them — returned URL differs from the Worker, and U+180E cannot be IDNA-encoded at fetch time","articleBody":"## Problem\n\nThe container validator (`pkgs/lab-ops-hub/container/app.py`, `validate_crawl_url`) judges a host in its UTS-46-mapped form — the `_UTS46_IGNORED` codepoints (app.py lines 55-58: U+00AD, U+034F, U+180E, U+200B, U+FEFF, U+2060-U+2064, ...) are deleted before the checks (line 221, #526) — but it returns the *raw* host spelling with those codepoints still in it. The Worker validator (`pkgs/lab-ops-hub/src/lib.ts`) returns the host with them deleted, because WHATWG domain-to-ASCII deletes them in `u.hostname` itself:\n\n| Input host | Container returns | Worker returns |\n|---|---|---|\n| `http://exa\\u200bmple.com/` (U+200B) | `http://exa\\u200bmple.com/` | `http://example.com/` |\n| `http://exa\\u00admple.com/` (U+00AD) | raw soft hyphen kept | `http://example.com/` |\n| `http://exa\\u180emple.com/` (U+180E) | raw U+180E kept | `http://example.com/` |\n| `http://exa\\u2060mple.com/` (U+2060) | raw U+2060 kept | `http://example.com/` |\n| `http://exa\\ufeffmple.com/` (U+FEFF) | raw U+FEFF kept | `http://example.com/` |\n| `http://example.com\\u200b/` (trailing label) | raw U+200B kept | `http://example.com/` |\n\nVerified this run on main `93065f0d` by driving both real validators over a focused probe set. Acceptance/refusal verdicts agree everywhere (blocked spellings stay blocked: `http://local\\u200bhost/` and `http://127\\u200b.0.0.1/` are refused by both, judged on the mapped form). Only the returned form diverges. The existing test (test_container_validate.py ~line 669) pins only that these hosts are *accepted* — it never asserts the returned string.\n\n## Why it matters\n\n1. **Recorded-URL divergence** — the standing #633/#639 contract is that both crawlers record and fetch the same URL for the same target; here the container records a host string the Worker never produces.\n2. **One arm can fail at fetch time.** The fetcher resolves the returned host via IDNA. Python's own IDNA codec maps most of these codepoints away (`\"exa\\u200bmple.com\".encode(\"idna\") == b\"example.com\"`, likewise U+00AD/U+2060/U+FEFF), so those spellings happen to fetch the judged host — but it refuses U+180E outright: `\"exa\\u180emple.com\".encode(\"idna\")` raises `UnicodeError: Invalid character '\\u180e'`. So a target both validators accept, and the Worker fetches as `example.com`, carries a returned host the container's IDNA resolution path cannot encode. (Probed directly against the codec this run; the exact fetch-time failure mode — resolver error vs 502 — is for the fixer to confirm end-to-end.)\n\n## Why this is filed-only (design note for the fixer)\n\nThe obvious fix — return the mapped host — is *not* a free choice here: `_url_with_encoded_components` deliberately leaves the host untouched (\"judged in mapped form, fetched via IDNA\", #615), because for ordinary IDN hosts the raw spelling is the intended fetch form (e.g. `münchen.de` is fetched as the Unicode spelling and encoded by the resolver). The ignored-codepoint case is narrower — the mapped form differs from the raw form *only by deletion of codepoints that are never part of any label* — but the fixer should decide explicitly whether to:\n\n- (a) delete exactly the `_UTS46_IGNORED` codepoints from the returned host (leaving every other IDN spelling untouched), or\n- (b) return the fully mapped host whenever the mapping changed anything, and revisit #615's rationale, or\n- (c) refuse U+180E-class spellings the local IDNA codec cannot encode, documenting the Worker divergence.\n\nOption (a) looks smallest and matches the Worker byte for byte on every probed spelling, but the choice interacts with open #588 (UTS-46 label validity) and should be made once, not by accident.\n\n## Acceptance criteria\n\n- For every codepoint in `_UTS46_IGNORED`, `validate_crawl_url` on a public host containing it returns the same URL string the Worker returns (host with the codepoint deleted), OR the issue is closed with a documented, tested decision for option (c) above.\n- Blocked-host judgement is unchanged: `local\\u200bhost`, `127\\u200b.0.0.1` and friends stay refused; ordinary IDN hosts (`münchen.de`, `example.com`) return exactly what they return today.\n- Tests in `test_container_validate.py` pin the *returned form* (not just acceptance) for the ignored-codepoint hosts, including U+180E; Python and TS suites pass.\n- A differential run of both validators over ignored-codepoint spellings (interior and trailing, single and multiple labels) shows no remaining divergences in verdict or returned form.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-23T06:16:11Z","url":"https://github.com/developing-today/code/issues/652"}

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:8d03b477-e716-7da3-50d9-5f699212880d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAEDC:29C715:898C60:B29443:6B062E4B
html-safe-nonce2101c8986ade012d4e9e948cf6a54d79481a08fd6dcb07ccea547e3a3154b387
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRURDOjI5QzcxNTo4OThDNjA6QjI5NDQzOjZCMDYyRTRCIiwidmlzaXRvcl9pZCI6IjY5MTc0MDIxMTMxNTMwNTIyMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac373290fbc4cb906454d631aa3a1f0d46c44a1f86f2ff9b7639f99a56961668db
hovercard-subject-tagissue:5992945565
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/652/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c99500d791fd71d4da78185a093bf4403f41e85f86a6aff1fc8ecd2240f4ac85/developing-today/code/issues/652
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c99500d791fd71d4da78185a093bf4403f41e85f86a6aff1fc8ecd2240f4ac85/developing-today/code/issues/652
og:image:altProblem The container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) judges a host in its UTS-46-mapped form — the _UTS46_IGNORED codepoints (app.py lines 55-58: U+00AD, U+034F, ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3
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
release494ea0bb1e0feef734a83e2628697647755e8864
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/652#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F652
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%2F652
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/652
Reloadhttps://github.com/developing-today/code/issues/652
Reloadhttps://github.com/developing-today/code/issues/652
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 requests152 (152)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/652
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/652
#668https://github.com/developing-today/code/pull/668
lab-ops-hub: container validator returns UTS-46 ignored codepoints in the host it judged without them — returned URL differs from the Worker, and U+180E cannot be IDNA-encoded at fetch timehttps://github.com/developing-today/code/issues/652#top
#668https://github.com/developing-today/code/pull/668
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/652#issue-5992945565
#526https://github.com/developing-today/code/issues/526
lab-ops-hub: container validator returns dot segments, host case and default ports un-normalized — fetcher requests a different path than the Worker #633https://github.com/developing-today/code/issues/633
lab-ops-hub: container validator returns empty path, empty port and empty userinfo un-normalized — recorded URL differs from the Worker #639https://github.com/developing-today/code/issues/639
#615https://github.com/developing-today/code/issues/615
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
#588https://github.com/developing-today/code/issues/588
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/652#event-34023946936
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/652#event-34058573848
Merge pull request #668 from developing-today/sweep/652-ignored-codep…https://github.com/developing-today/code/commit/088e2b3328dbb71a260f259bf16b0f5382695d6f
#668https://github.com/developing-today/code/pull/668
088e2b3https://github.com/developing-today/code/commit/088e2b3328dbb71a260f259bf16b0f5382695d6f
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#668https://github.com/developing-today/code/pull/668
on Oct 23, 2026https://github.com/developing-today/code/issues/652#event-34058574150
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/652#issuecomment-7124555487
developing.today fleethttps://kaneo.security.cab
PR #668 — fix(lab-ops-hub): return the host without UTS-46 ignored codepoints in the container validator (#652)https://github.com/developing-today/code/pull/668
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/652
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/652
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.