gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings

← Pull requests

#2day39 re-vendor: Hybriel 51e921d7 (bin 6b481aa7), ids kebab-case since hybriel#256: quoted state rule and tests use jb-shuffle / jb-repeat

mergedday39 → mainby Jukebox · head cfe95440

  • successKunibert: kunibertKunibert review

Verdicts

  • Kunibertapproved

People’s approvals

Reviews

  1. Kunibertappapprovedcfe95440 · current head · 2026-11-04 07:48:11 UTC

    The kebab-case selector and test updates are consistent with the framework change. Four major correctness issues remain, plus a smaller compare-and-set compatibility bug.

    Correctness (0 new, 0 still open)

    Redirect handling can leak credentials, mishandle browser redirects, and repeat POST requests; browser route synchronization also drops query parameters. Compare-and-set rejects unchanged timestamp fields from supported JS-written stores.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (0 new, 0 still open)

    No repository-local standards files or documented-rule violations were found.

    Framework (vendored, not blocking)

    These paths are vendored framework code; the findings go to the framework's maintainers and do not affect this verdict. https://tickets.worldapi.org/hybriel

    • 🔶 Major · Correctness: Strip credentials on cross-origin redirects (plugins/fetch/server.js:28) Every hop starts a fresh request with the original headers. A redirect to another origin therefore forwards Authorization, Proxy-Authorization, and Cookie; an in-memory probe confirmed this. Compare origins before following each hop and strip sensitive headers when the origin changes.
    • 🔶 Major · Correctness: Let browser Fetch follow redirects (plugins/fetch/client.js:28) Browser Fetch returns an opaqueredirect response for manual redirects, with status 0 and no readable Location header. This loop therefore returns an empty failed response instead of following the redirect. Use host-managed redirect following in the browser.
    • 🔶 Major · Correctness: Rewrite the method and body after a 303 (plugins/fetch/server.js:33) Only the URL changes between hops. A POST receiving a 303 consequently sends the same POST body to the result URL, potentially repeating side effects or receiving a 405. Apply the redirect method rules and clear the body and its headers when switching to GET.
    • 🔶 Major · Correctness: Preserve query parameters in browser route synchronization (plugins/web/WebFramework.hl:4222) The server now supplies route.query, but client.hl's currentRoute() still returns only path, params, and pattern. Navigation and history synchronization overwrite retained mounts with that incomplete route, while late-mounted children receive it directly. Include the parsed location.search in currentRoute().
    • 🔹 Minor · Correctness: Compare stored scalars as fetch exposes them (plugins/mpackdb/engine.zig:2666) The supported JS compatibility fixture writes a Date field, which msgpackToHl() exposes as numeric milliseconds. Passing that fetched value back in an expectation always fails because this switch rejects its stored .ext representation, even without another write. Normalize timestamp and binary values using the same conversions as fetch before comparing.

    Gates: not run

  2. Kunibertapprequested changescfe95440 · current head · 2026-11-04 06:40:36 UTC

    The selector migration is consistent, but the vendored update introduces redirect defects and loses route-query state during browser navigation. Credential forwarding across origins warrants changes before merging.

    Correctness (4 new, 0 still open)

    Found four issues, including authorization leakage; in-memory checks confirmed credential forwarding and POST replay. Full application gates were not run because the Hybriel executable is absent.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (0 new, 0 still open)

    No documented repository-standard violations found.

    Gates: not run

Threads

  1. plugins/fetch/server.js:28resolvedKunibert

    1. Kunibert2026-11-04 06:40:36 UTC

      🔶 Major · Correctness: Strip credentials when following redirects across origins

      Every redirect reuses the original headers in a separate fetch call. A request carrying Authorization therefore sends that credential to another origin named by Location; an in-memory check confirmed this. Strip origin-bound credentials when the origin changes, including in client.js.

    2. Kunibert2026-11-04 07:48:31 UTC

      Vendored framework code (plugins/): not blocking for this repo since kunibert#13. The finding is listed in the Framework section of the latest review and goes to the framework maintainers.

  2. plugins/fetch/client.js:28resolvedKunibert

    1. Kunibert2026-11-04 06:40:36 UTC

      🔶 Major · Correctness: Let browser Fetch follow redirects

      Browser Fetch returns an opaqueredirect response for manual redirects, with status 0 and no readable Location—even for same-origin redirects. This loop consequently returns an empty response instead of following ordinary redirected requests. Use host-managed redirects in the browser and document the resulting maxRedirects limitations.

    2. Kunibert2026-11-04 07:48:31 UTC

      Vendored framework code (plugins/): not blocking for this repo since kunibert#13. The finding is listed in the Framework section of the latest review and goes to the framework maintainers.

  3. plugins/fetch/server.js:33resolvedKunibert

    1. Kunibert2026-11-04 06:40:36 UTC

      🔶 Major · Correctness: Rewrite the method and body after a 303 redirect

      The loop changes only the URL, so a POST receiving 303 sends another POST with the original body to the destination. The native implementation correctly switches this case to GET. Implement method/body rewriting for 303 and POST 301/302 responses in both JavaScript halves, preserving them for 307/308.

    2. Kunibert2026-11-04 07:48:31 UTC

      Vendored framework code (plugins/): not blocking for this repo since kunibert#13. The finding is listed in the Framework section of the latest review and goes to the framework maintainers.

  4. plugins/web/WebFramework.hl:4222resolvedKunibert

    1. Kunibert2026-11-04 06:40:36 UTC

      🔹 Minor · Correctness: Preserve route.query in browser route synchronization

      The server now supplies query, but client.hl's currentRoute() still returns only path, params and pattern. showOne()/routeSync() overwrite the server route with that incomplete value for shells and kept pages, while dynamically created children also receive no query. Add query parsing from location.search to currentRoute().

    2. Kunibert2026-11-04 07:48:32 UTC

      Vendored framework code (plugins/): not blocking for this repo since kunibert#13. The finding is listed in the Framework section of the latest review and goes to the framework maintainers.

Conversation

Nobody has written here yet.

Only the owner and the members of this repository can comment here.