Skip to content

Fix the 0.2.28 release review findings - #426

Merged
neuromechanist merged 5 commits into
stagingfrom
fix/release-0.2.28-review
Oct 5, 2026
Merged

neuromechanist merged 5 commits into
stagingfrom
fix/release-0.2.28-review

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Findings from the release review of #424, the whole 0.2.28 diff, before promotion.

  • ?view= quoting (28ecbad). The dataset page's and the embed's "no recording matches" notice quoted the raw ?view= value, so anyone writing a link (or framing the embed) could put their own sentence on a nemar.org page. displayableViewParam (recording-nav.ts) quotes values shaped like entity strings, filenames or BIDS paths ([A-Za-z0-9._/-]{1,120}) and says "a recording" otherwise. This is the same guard displayableDatasetId gives the path id. Tests cover real view values and free-text refusals.
  • The counter's point is built inside the try (a58c94b). No input was found that makes embedCallPoint throw, but a counter must never break the response it counts. The log names the dataset when there is one, and the test assertion follows the new text.
  • Changelog corrections (8a72d70):

Not changed, noted on #424: private.nemar.org does not resolve yet, and nothing links to the handoff page.

Tests

  • bun run lint, bun run typecheck (0 errors), bun run test (2991 passed)

Release review of #424: the embed's and the dataset page's "no
recording matches" notices quoted the raw ?view= value, so anyone
writing a link (or framing the embed) could put their own sentence on a
nemar.org page. displayableViewParam quotes values shaped like entity
strings, filenames or BIDS paths and says "a recording" otherwise, the
same guard displayableDatasetId gives the path id.

Tested: recording-nav tests (90 passed), including real view values and
free-text refusals.
Release review of #424: embedCallPoint ran outside countEmbedCall's
try. No input found makes it throw, but a counter must never break the
response it counts, so building the point now sits inside the same
catch as the write, and the log names the dataset when there is one.

Tested: middleware tests (83 passed).
- the private handoff's 501 keys on the API base, not production;
- the page's own responses carry no-store/no-referrer/noindex, a
  cross-host redirect only no-store;
- add the shared viewer session (#415) and the ?theme= cache key;
- add the ?view= quoting fix.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Deploying nemar-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: fc5652c
Status: ✅  Deploy successful!
Preview URL: https://88273685.nemar-website.pages.dev
Branch Preview URL: https://fix-release-0-2-28-review.nemar-website.pages.dev

View logs

Re-review of #426: the embed's unknown-version note (and its log)
quoted the raw ?v= value, the same echo #426 closed for ?view=.
displayableVersion admits version tokens such as v1.0.1, and anything
else reads "That version". displayableViewParam now trims, as
parseViewSpec does, and says what it can and cannot rule out. The
changelog says where #415's code moved from, and ADR 0024 and the flag
comment describe the widened catch.

Tested: lint, typecheck, unit tests.
@neuromechanist
neuromechanist merged commit 07c9e68 into staging Oct 5, 2026
5 checks passed
@neuromechanist
neuromechanist deleted the fix/release-0.2.28-review branch October 5, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant