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 appends the empty-query marker after the fragment — path?#frag returns as path#frag?, differing from the Worker · Issue #654 · developing-today/code

lab-ops-hub: container validator appends the empty-query marker after the fragment — path?#frag returns as path#frag?, differing from the Worker #654

New issue
Copy link
New issue
Copy link
Closed
#663
Closed
lab-ops-hub: container validator appends the empty-query marker after the fragment — path?#frag returns as path#frag?, differing from the Worker#654
#663
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

PR #648 (#648, commit 7bd77d0937, merged as 93065f0d) added _empty_query_fragment_markers to preserve the empty ? / # markers WHATWG keeps (#639), but it re-attaches the markers as a suffix after geturl() at every rebuild site. When the query is empty and the fragment is non-empty, the ? therefore lands after the fragment instead of before the #:

Input Container returns (current main) Worker / WHATWG URL returns
http://example.com/path?#frag http://example.com/path#frag? http://example.com/path?#frag
http://example.com?#frag http://example.com/#frag? http://example.com/?#frag
http://example.com/a?#b?c http://example.com/a#b?c? http://example.com/a?#b?c
http://%65xample.com/path?#frag http://example.com/path#frag? http://example.com/path?#frag
http://8%2e8%2e8%2e8/path?#frag http://8.8.8.8/path#frag? http://8.8.8.8/path?#frag

Verified on current main by running validate_crawl_url from pkgs/lab-ops-hub/container/app.py (extracted fresh via gh api ...?ref=main) against the table above, cross-checked against Node's WHATWG URL serializer (the Worker's reference). The percent-decoded-host and canonical-IP rebuilds are affected too, because all three rebuild sites share the suffix pattern.

Evidence

  • pkgs/lab-ops-hub/container/app.py:784-798 — _empty_query_fragment_markers() returns the markers as an unordered suffix string ("?" computed from the pre-# spelling, "#" if the fragment is empty).
  • pkgs/lab-ops-hub/container/app.py:860 — _normalize_validated_url: ...geturl() + _empty_query_fragment_markers(url).
  • pkgs/lab-ops-hub/container/app.py:937 — _url_with_encoded_components: same geturl() + markers suffix.
  • pkgs/lab-ops-hub/container/app.py:737-741 — _url_with_host: same suffix on all three return arms.
  • geturl() rebuilds a non-empty fragment as #frag at the end of the string, so a suffixed ? is parsed back as fragment data, not as the query marker.
  • PR fix(lab-ops-hub): return empty path, userinfo and ?/# markers WHATWG-normalized (#639) #648's test battery covered path?# (both markers empty — suffix order happens to be correct), path?x# (non-empty query), and #frag?notquery (? as fragment data), but not the empty-query + non-empty-fragment combination. Its 43,200-spelling differential evidently did not include that tail either.
  • PR fix(lab-ops-hub): drop the password colon when the password is empty in the returned URL (#651) #653 (open, fixes lab-ops-hub: container validator keeps the password colon when the password is empty (user:@ / :@) — returned URL differs from the Worker #651) stacks on this code and does not touch the marker logic, so it carries the same defect.

Why it matters

This is exactly the class of divergence #639 set out to eliminate: the two crawlers record different URLs for the same accepted target. Worse than a dropped marker, the returned URL is a different URL — the fragment is corrupted (frag? instead of frag) and the present-but-empty query becomes absent — so anything keying on the recorded URL (dedup, redirect handling, downstream fetch of the recorded form) sees a different target than the one that was judged and that the Worker records.

Acceptance criteria

  • validate_crawl_url returns the WHATWG form for empty-query + non-empty-fragment spellings, e.g. http://example.com/path?#frag → http://example.com/path?#frag, including through the percent-decoded-host and canonical-IP rebuild paths.
  • The empty-fragment marker case stays correct (path?#, path#, path?x# unchanged) and a ? inside the fragment stays data (#frag?notquery unchanged).
  • New regression tests pin the ?#<non-empty fragment> combination in the Python suite (and the TS suite if the Worker pin is extended); the differential probe set includes empty-query × non-empty-fragment tails.
  • Existing Python / TS validator suites still pass; no verdict (accept/refuse) changes.

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 #663 from developing-today/sweep/654-empty-query-m…

    36a592f
  3. dezren39
    closed this as completedin #663on 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 #663 — fix(lab-ops-hub): keep the empty-query marker before the fragment (#654) (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.