GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lab-ops-hub: container validator drops the DNS root dot only for the percent-encoded spelling — returned URL differs from the Worker and from its own literal-dot form · Issue #647 · developing-today/code

lab-ops-hub: container validator drops the DNS root dot only for the percent-encoded spelling — returned URL differs from the Worker and from its own literal-dot form #647

New issue
Copy link
New issue
Copy link
Closed
#664
#657
Closed
lab-ops-hub: container validator drops the DNS root dot only for the percent-encoded spelling — returned URL differs from the Worker and from its own literal-dot form#647
#664
#657
Copy link
Assignees
dezren39
Labels
app/lab-ops-hubPackage/app: lab-ops-hub (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)

Description

@dezren39
dezren39
opened on Oct 23, 2026
Issue body actions

Finding

For a host with a trailing DNS root dot, the container validator returns a different URL depending on how the dot was spelled, and the percent-encoded spelling disagrees with the Worker validator:

Input Container returns Worker returns
http://example.com./ http://example.com./ http://example.com./
http://example.com./path http://example.com./path http://example.com./path
http://example.com%2e/ http://example.com/ http://example.com./
http://example.com%2E/ http://example.com/ http://example.com./
http://sub.example.com%2e/ http://sub.example.com/ http://sub.example.com./
http://example.com%2e/path http://example.com/path http://example.com./path

Verified this run on current main (e810ca8), driving both real validators: Python validate_crawl_url (pkgs/lab-ops-hub/container/app.py) and the Worker validateCrawlUrl (pkgs/lab-ops-hub/src/lib.ts) under Bun. Acceptance agrees everywhere probed (both refuse http://localhost%2e/, both accept the public forms) — only the returned/recorded form diverges.

Root cause

container/app.py:250-251 strips a single trailing root dot from the judged host (host = host[:-1], #466) — correct for judging. But the percent-decoded return path (container/app.py, the _url_with_host(u, host) if percent_decoded else raw call in validate_crawl_url, ~line 402) rebuilds the returned URL from that stripped host, so the dot is lost. The literal-dot spelling takes the raw path and keeps its dot. The Worker strips the dot only for its checks (src/lib.ts:145-146) but returns u.toString(), and WHATWG host parsing decodes %2e to . and serialises the root dot back — so the Worker returns the dotted form for both spellings.

Why it matters

The validated URL is the crawl record and the fetched URL: the same target is recorded as http://example.com/ by the container (percent-encoded input) but http://example.com./ by the Worker and by the container itself (literal input), defeating cross-crawler dedup/comparison for root-dot spellings — the same class of divergence #633/#639 addressed for dot segments, ports and empty components. (Fetching is unaffected in practice: a root-dot host resolves identically.)

Acceptance criteria

  • One canonical returned form for the root-dot host, identical for the literal and percent-encoded spellings and matching the Worker (or the Worker changed too, with the decision recorded — the two validators must agree).
  • A differential test against the Worker validator covers example.com., example.com%2e, example.com%2E and a subdomain form, with and without a path.
  • No change to which targets are accepted or refused (localhost%2e stays refused, example.com.. stays refused); existing container and Worker validator tests stay green.

Suggested fix

In the percent-decoded return path, re-attach the root dot that judging stripped (track whether the decoded host ended in . before the strip at app.py:250 and append it to the host passed to _url_with_host), or record the pre-strip decoded host for the return form while judging the stripped one.

Activity

  1. github-actions
    assigned
    dezren39
    on Oct 23, 2026
  2. dezren39
    added a commit that references this issue on Oct 23, 2026

    Merge pull request #657 from developing-today/sweep/647-percent-encod…

    f1a8abf
  3. dezren39
    closed this as completedin #657on Oct 23, 2026
  4. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    AUDIT-7 Lane 2 slice 3 — closing evidence. Verified against the issue body and merged implementation PR(s):

    • PR #657 — fix(lab-ops-hub): keep the DNS root dot for percent-encoded host spellings (#647) (merged 2026-10-23)
    • PR #664 — fix(lab-ops-hub): return the ASCII dot for literal UTS-46 separator spellings in the container validator (#660) (merged 2026-10-23)

    The issue had zero comments in the fresh pre-action read; this comment records the missing close evidence.

  5. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    app/lab-ops-hubPackage/app: lab-ops-hub (pkgs/ or apps/ in this repo)
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/lab-ops-hubPackage/app: lab-ops-hub (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.