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 resolves a trailing '..;' / '.;' segment as a dot segment — bare-semicolon params tail is lost, returned path differs from the Worker · Issue #655 · developing-today/code

lab-ops-hub: container validator resolves a trailing '..;' / '.;' segment as a dot segment — bare-semicolon params tail is lost, returned path differs from the Worker #655

New issue
Copy link
New issue
Copy link
Closed
#656
Closed
lab-ops-hub: container validator resolves a trailing '..;' / '.;' segment as a dot segment — bare-semicolon params tail is lost, returned path differs from the Worker#655
#656
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

Summary

The container validator (pkgs/lab-ops-hub/container/app.py) resolves a trailing dot segment followed by a bare semicolon (..;, .;, %2e;, %2e%2e;) as if it were a plain dot segment, and returns a different path than the Worker returns for the same target. WHATWG treats ..; as an ordinary path segment (the semicolon is data), so the Worker keeps it; the container drops the segment entirely (and, for ..;, pops the previous segment too), so the two crawlers record — and fetch — different URLs.

Evidence (verified on main 3ac2e9ee, driving the real Python validator vs Node's WHATWG URL)

Input Container returns Worker (WHATWG) returns
http://example.com/..; http://example.com/ http://example.com/..;
http://example.com/.; http://example.com/ http://example.com/.;
http://example.com/foo/..; http://example.com/ http://example.com/foo/..;
http://example.com/a/.; http://example.com/a/ http://example.com/a/.;
http://example.com/a/b/..; http://example.com/a/ http://example.com/a/b/..;
http://example.com/%2e; http://example.com/ http://example.com/%2e;
http://example.com/%2e%2e; http://example.com/ http://example.com/%2e%2e;
http://example.com/..;?q http://example.com/?q http://example.com/..;?q

Controls that already agree (non-empty params are handled): http://example.com/..;foo, http://example.com/foo/.;x, http://example.com/a/..;foo all return unchanged in both.

Root cause

urlparse splits the last path segment at the first ; into path + params. For a bare trailing ; the params are the empty string:

urlparse("http://example.com/..;")  -> path="/..", params=""
urlparse("http://example.com/..;foo") -> path="/..", params="foo"
  • _normalize_validated_url (app.py:849) rejoins only when params is truthy: full_path = u.path + (f";{u.params}" if u.params else "") — so the ; is lost exactly when params is empty, and _resolve_dot_segments then treats the rejoined /.. / /. / /%2e as a dot segment. The comment at app.py:816-820 documents the rejoin intent ("a trailing ..;foo is data, not a double-dot segment") but the empty-params arm defeats it. The existing tests at app.py:979-980 / the test suite cover only ..;foo spellings.
  • _url_with_encoded_components (app.py:~942) has the same loss independently: it rebuilds from u.path + u.params, so even a correctly normalized /..; would come back as /...

Why it matters

The URL validate_crawl_url returns is the URL the fetcher fetches. A target whose last segment is ..; / .; (a legitimate, if unusual, path spelling) is fetched by the container at the collapsed path — a different resource than the Worker fetches and than was judged — the same returned-form divergence class as #633/#639, in the one params arm those fixes missed.

Acceptance criteria

  • validate_crawl_url returns the WHATWG form for the table above (segments ..;, .;, %2e;, %2e%2e; preserved verbatim, including before ?/#).
  • The fix covers both rebuild sites (_normalize_validated_url and _url_with_encoded_components); one clean way is to take the full path (including the ;params tail) from urlsplit, which never splits params, instead of rejoining urlparse's split.
  • New regression tests in pkgs/lab-ops-hub/test/test_container_validate.py pin the bare-; spellings alongside the existing ..;foo controls; existing suite stays green.
  • No change to acceptance/refusal verdicts — returned form only.

Activity

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

    style(lab-ops-hub): ruff-format the #655 rebuild sites (treefmt)

    e416002
  3. dezren39
    closed this as completedin #656on Oct 23, 2026
  4. dezren39
    added a commit that references this issue on Oct 23, 2026

    Merge pull request #656 from developing-today/creator/655-bare-semico…

    a6639b8
  5. 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 #656 — fix(lab-ops-hub): keep a bare-semicolon dot-spelled segment in the container validator's returned URL (#655) (merged 2026-10-23)

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

  6. 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.