René's URL Explorer Experiment


Title: lab-ops-hub: container validator returns non-ASCII path/query/userinfo verbatim — fetcher raises UnicodeEncodeError on URLs both validators accept · Issue #615 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: container validator returns non-ASCII path/query/userinfo verbatim — fetcher raises UnicodeEncodeError on URLs both validators accept · Issue #615 · developing-today/code

X Title: lab-ops-hub: container validator returns non-ASCII path/query/userinfo verbatim — fetcher raises UnicodeEncodeError on URLs both validators accept · Issue #615 · developing-today/code

Description: Problem The container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) returns non-ASCII characters (U+0080 and above) verbatim in the path, query and userinfo of an accepted URL, and the container fetcher then dies on t...

Open Graph Description: Problem The container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) returns non-ASCII characters (U+0080 and above) verbatim in the path, query and userinfo of an accepted URL, ...

X Description: Problem The container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) returns non-ASCII characters (U+0080 and above) verbatim in the path, query and userinfo of an accepted URL, ...

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

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 non-ASCII path/query/userinfo verbatim — fetcher raises UnicodeEncodeError on URLs both validators accept","articleBody":"## Problem\n\nThe container validator (`pkgs/lab-ops-hub/container/app.py`, `validate_crawl_url`) returns non-ASCII characters (U+0080 and above) **verbatim** in the path, query and userinfo of an accepted URL, and the container fetcher then dies on them:\n\n- WHATWG URL parsing (the Worker's `validateCrawlUrl` in `src/lib.ts`, via `new URL`) UTF-8 **percent-encodes** every non-ASCII character in the userinfo, path, query and fragment, returning a clean ASCII URL.\n- The container validator accepts the same spellings but returns the raw string. `_fetch_crawl` hands it to urllib/`http.client`, which encodes the request line (and headers) as ASCII and raises `UnicodeEncodeError` before any request is sent — so `do_POST` surfaces a 502 for a URL both validators accepted, instead of the crawl result the Worker path produces.\n\nThis is the judge-vs-fetch family of #611/#614, for the character class #614 does not cover: #614's scope and acceptance criteria are the C0 controls (U+0000–U+001F), space and DEL in the returned URL. Non-ASCII characters are a different class with a different remedy (UTF-8 percent-encoding, not trimming/control-encoding), and any ordinary non-English crawl target hits it — a pasted `https://example.com/café` or a search URL with a non-English query is enough. Verdicts agree everywhere; this is acceptance-side only, no SSRF direction (blocked hosts stay refused — the host judging is untouched, and a non-ASCII host itself is fetched fine via IDNA, as the existing café.com parity cases show).\n\n## Evidence (reproduced on current main 3c31fcdb, 2026-10-22)\n\nDifferential through both real validators (container `validate_crawl_url` vs Worker `validateCrawlUrl` under Bun):\n\n```\n'http://example.com/café'        container returns 'http://example.com/café'        Worker returns 'http://example.com/caf%C3%A9'\n'http://example.com/日本語'       container returns 'http://example.com/日本語'       Worker returns 'http://example.com/%E6%97%A5%E6%9C%AC%E8%AA%9E'\n'http://example.com/?q=café'     container returns 'http://example.com/?q=café'     Worker returns 'http://example.com/?q=caf%C3%A9'\n'http://example.com/?q=😀'       container returns 'http://example.com/?q=😀'       Worker returns 'http://example.com/?q=%F0%9F%98%80'\n'http://user:café@example.com/'  container returns 'http://user:café@example.com/'  Worker returns 'http://user:caf%C3%A9@example.com/'\n'http://café@example.com/'       container returns 'http://café@example.com/'       Worker returns 'http://caf%C3%A9@example.com/'\n```\n\nFetcher consequence, verified with the container's own `_fetch_crawl` against a local HTTP server (host swapped to the test server, non-ASCII positions preserved):\n\n```\n'http://\u003csrv>/café'      -> UnicodeEncodeError: 'ascii' codec can't encode character 'é' (no request sent)\n'http://\u003csrv>/日本語'     -> UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-7 (no request sent)\n'http://\u003csrv>/?q=café'   -> UnicodeEncodeError (same)\n'http://café@\u003csrv>/x'    -> UnicodeEncodeError (userinfo)\n```\n\nControls that fetch **fine** through the container and are out of scope: a non-ASCII fragment (`/x#café` — the fragment is never sent), and the ASCII characters WHATWG also encodes (`\"`, `\u003c`, `>`, backtick, `^`, `{`, `}` in the path) — urllib sends those verbatim and the server answers, so they are returned-form differences only, not fetcher failures.\n\n## Why it matters\n\n`validate_crawl_url`'s contract is judge-what-you-fetch. Any crawl target whose path or query carries a non-ASCII character — non-English page names, search queries, generated links, redirect `Location`s built from user data (the redirect handler validates through the same function) — is accepted by the container validator and then fails the fetch with a 502, while the Worker fallback fetches the WHATWG-normalized form successfully. The two crawlers disagree on the outcome for a large class of ordinary public URLs.\n\n## Acceptance criteria\n\n- [ ] For every input both validators accept, the URL `validate_crawl_url` returns is pure ASCII outside the host — non-ASCII characters in the userinfo, path, query and fragment are UTF-8 percent-encoded the way WHATWG serializes them (the host keeps its current spelling: it is judged in mapped form and fetched via IDNA, per the existing design).\n- [ ] No double-encoding: existing `%XX` sequences in those components pass through byte-identical, and verdict parity is preserved (no currently-accepted public target changes verdict; blocked hosts stay refused).\n- [ ] Python tests pin the headline cases (path `café`, CJK path, query, emoji query, non-ASCII password and username in userinfo) with the exact returned URLs, and the TS suite pins the Worker's returned form for the same inputs.\n- [ ] A differential run over a non-ASCII battery (path/query/fragment/userinfo positions) shows verdict parity and ASCII-only returned URLs from the container validator outside the host, and `_fetch_crawl` successfully fetches the returned form for a local target carrying non-ASCII path/query.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T23:39:05Z","url":"https://github.com/developing-today/code/issues/615"}

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:eb2f2bce-b8b9-bd5e-b445-ae84e8e0d270
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAFDC:130DD7:86D5B2:B393E7:6B0632C6
html-safe-noncee4151c0655e0cb83dd9c177e1867a4399bf2369921924c28b803ecd8e29fd116
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkRDOjEzMERENzo4NkQ1QjI6QjM5M0U3OjZCMDYzMkM2IiwidmlzaXRvcl9pZCI6IjMyNjk2MzMxNTY4MzU1ODY3NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9a10adff4f7fdd0f8fd4ed8f3d3ea363147593491b165922bcba6f8150fd41ee
hovercard-subject-tagissue:5989212565
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/615/issue_layout
twitter:imagehttps://opengraph.githubassets.com/18063c611c5c4e04c3fd76b7bdd17fddc74347ab7a405c38454758352dadf3fe/developing-today/code/issues/615
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/18063c611c5c4e04c3fd76b7bdd17fddc74347ab7a405c38454758352dadf3fe/developing-today/code/issues/615
og:image:altProblem The container validator (pkgs/lab-ops-hub/container/app.py, validate_crawl_url) returns non-ASCII characters (U+0080 and above) verbatim in the path, query and userinfo of an accepted URL, ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonec3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0
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
release9eb3bb1597d09170a5f282cd38ae376dee1a5ec1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/615#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F615
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%2F615
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/615
Reloadhttps://github.com/developing-today/code/issues/615
Reloadhttps://github.com/developing-today/code/issues/615
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/615
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/615
#616https://github.com/developing-today/code/pull/616
lab-ops-hub: container validator returns non-ASCII path/query/userinfo verbatim — fetcher raises UnicodeEncodeError on URLs both validators accepthttps://github.com/developing-today/code/issues/615#top
#616https://github.com/developing-today/code/pull/616
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/615#issue-5989212565
#611https://github.com/developing-today/code/issues/611
#614https://github.com/developing-today/code/issues/614
#614https://github.com/developing-today/code/issues/614
#614https://github.com/developing-today/code/issues/614
3c31fcdhttps://github.com/developing-today/code/commit/3c31fcdbf8e10850fa216aada3fa1914b9f32a68
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/615#event-34003721443
dezren39https://github.com/dezren39
on Oct 22, 2026https://github.com/developing-today/code/issues/615#event-34004034305
Merge pull request #616 from developing-today/creator/615-nonascii-pe…https://github.com/developing-today/code/commit/9729f9e041509b1e744cebf18b2a91371934f1db
#616https://github.com/developing-today/code/pull/616
9729f9ehttps://github.com/developing-today/code/commit/9729f9e041509b1e744cebf18b2a91371934f1db
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#616https://github.com/developing-today/code/pull/616
on Oct 22, 2026https://github.com/developing-today/code/issues/615#event-34004034539
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/615
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/615
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.