Title: lab-ops-hub: literal U+3002/U+FF0E/U+FF61 root-dot spellings still return the fullwidth form from the container validator (PR #657 remainder) · Issue #660 · developing-today/code · GitHub
Open Graph Title: lab-ops-hub: literal U+3002/U+FF0E/U+FF61 root-dot spellings still return the fullwidth form from the container validator (PR #657 remainder) · Issue #660 · developing-today/code
X Title: lab-ops-hub: literal U+3002/U+FF0E/U+FF61 root-dot spellings still return the fullwidth form from the container validator (PR #657 remainder) · Issue #660 · developing-today/code
Description: Finding PR #657 fixed #647 for percent-encoded root-dot spellings, but the same divergence survives for the literal UTS-46 label-separator spellings of the root dot: U+3002 (。), U+FF0E (.) and U+FF61 (。) written as literal characters in ...
Open Graph Description: Finding PR #657 fixed #647 for percent-encoded root-dot spellings, but the same divergence survives for the literal UTS-46 label-separator spellings of the root dot: U+3002 (。), U+FF0E (.) and U+FF...
X Description: Finding PR #657 fixed #647 for percent-encoded root-dot spellings, but the same divergence survives for the literal UTS-46 label-separator spellings of the root dot: U+3002 (。), U+FF0E (.) and U+FF...
Opengraph URL: https://github.com/developing-today/code/issues/660
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: literal U+3002/U+FF0E/U+FF61 root-dot spellings still return the fullwidth form from the container validator (PR #657 remainder)","articleBody":"## Finding\n\nPR #657 fixed #647 for **percent-encoded** root-dot spellings, but the same divergence survives for the **literal** UTS-46 label-separator spellings of the root dot: U+3002 (。), U+FF0E (.) and U+FF61 (。) written as literal characters in the URL.\n\n`validate_crawl_url` in `pkgs/lab-ops-hub/container/app.py` judges the UTS-46-mapped host (the translate at app.py:~221 maps all three characters to `.`), and PR #657's `has_root_dot` (app.py:254) is computed on that mapped host — but the re-attach at app.py:411-415 only runs on the `percent_decoded` branch. The non-percent branch returns `raw`, so a literal separator spelling comes back with the fullwidth character still in it.\n\n## Evidence (verified on current main f1a8abf0, merge of PR #657)\n\nRunning the real `validate_crawl_url` from `pkgs/lab-ops-hub/container/app.py` (Python suite: 58/58 pass):\n\n| Input | Container (current main) | Worker / WHATWG |\n|---|---|---|\n| `http://example.com。/` (literal U+3002) | `http://example.com。/` | `http://example.com./` |\n| `http://example.com./` (literal U+FF0E) | `http://example.com./` | `http://example.com./` |\n| `http://example.com。/` (literal U+FF61) | `http://example.com。/` | `http://example.com./` |\n| `http://example.com%E3%80%82/` (percent U+3002) | `http://example.com./` | `http://example.com./` |\n| `http://example.com。:8080/` | `http://example.com。:8080/` | `http://example.com.:8080/` |\n| `http://user@example.com。/` | `http://user@example.com。/` | `http://user@example.com./` |\n\nVerdicts are correct in all these cases — judging uses the mapped host (`http://localhost。/` and `http://127.0.0.1。/` are refused, as are their percent spellings). Only the returned form diverges.\n\n## Why it matters\n\nThe returned URL is the crawl record and the fetched URL. This is exactly the #647 harm PR #657 set out to fix — \"the same target was recorded under two different URLs depending on spelling, defeating cross-crawler dedup/comparison\" — surviving for the literal spellings of the same three characters. The percent-encoded spelling of U+3002 and the literal spelling of U+3002 are the same host character arriving two ways; the validator now returns two different URLs for them, and the literal form also disagrees with the Worker validator, whose WHATWG parser serialises the mapped `.` form.\n\nRelated context (fixer may scope to the root dot or address it together): the same raw-return path also leaves *interior* literal separators unmapped (`http://example。com/` returns the literal `。` form; the Worker returns `http://example.com/`). The root-dot cases above are the ones inside PR #657's stated scope.\n\n## Acceptance criteria\n\n- `validate_crawl_url` returns the ASCII dotted form for literal U+3002 / U+FF0E / U+FF61 root-dot spellings, byte-identical to their percent-encoded spellings and to the Worker's `validateCrawlUrl` (path, port, userinfo and `?#` marker variants included).\n- Verdicts unchanged: dotted spellings of blocked targets (`localhost。`, `127.0.0.1。`) stay refused; a second separator still counts as an empty label and is refused.\n- New tests mirror the #647 battery in `test/test_container_validate.py` for the literal spellings (and a TS pin in `test/lib.test.ts` if the Worker side needs one — it already returns the dotted form).\n- A differential run against the real Worker validator over literal + percent spellings of all three separator characters shows zero diffs.\n\nFound by the pr-diff-review job reviewing PR #657 (commit 5b115fa98845a5582c241812de7f354fede05cb1, merge f1a8abf0c4da2fee9b28c42805ecfc6b62340acb). Deduped against open/closed issues: #647 (closed) covered only the percent-encoded spellings; the literal-spelling return form appears in no open or closed issue (#654 is the separate empty-query-marker defect).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-23T09:00:46Z","url":"https://github.com/developing-today/code/issues/660"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8a8a97b3-d80e-2e4b-8577-c7b52798ba0d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED96:2A9AB5:CF453D:10B8ACD:6B06407F |
| html-safe-nonce | 4e544b97cb5d894cf87a33e36d36afb9a64fcd2d8549106624fe1c3f6d2f8b32 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDk2OjJBOUFCNTpDRjQ1M0Q6MTBCOEFDRDo2QjA2NDA3RiIsInZpc2l0b3JfaWQiOiIxMjY4NDM4Nzc5MjkxOTEwMjcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a5e2978c3808b0eb5605708237cd2a63a2f5559766100a50c28dac3a36192e47 |
| hovercard-subject-tag | issue:5994950827 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/660/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c99500d791fd71d4da78185a093bf4403f41e85f86a6aff1fc8ecd2240f4ac85/developing-today/code/issues/660 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c99500d791fd71d4da78185a093bf4403f41e85f86a6aff1fc8ecd2240f4ac85/developing-today/code/issues/660 |
| og:image:alt | Finding PR #657 fixed #647 for percent-encoded root-dot spellings, but the same divergence survives for the literal UTS-46 label-separator spellings of the root dot: U+3002 (。), U+FF0E (.) and U+FF... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac613d3698d3d8565651455086e1f74da07bf277 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width