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 — id(web): refuse link marks with a non-string title (#1618 slice 10) by developing-today-fleet[bot] · Pull Request #16434 · developing-today/code

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 28, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Slice 10 of #1618: refuse a link mark whose title attr is present but neither a string nor null, before storage.

Oracle: prosemirror-schema-basic declares the link mark attrs: {href: {validate: "string"}, title: {default: null, validate: "string|null"}}, and web/src/editor.ts never updates the link mark (its marks are basicSchema.spec.marks.append({strikethrough})), so the validation is live in the editor schema. Verified empirically against prosemirror-model 1.25.12 + prosemirror-schema-basic 1.2.5 (the versions in pkgs/id/web/package.json): Mark.fromJSON and Step.fromJSON throw "Expected value of type string,null for attribute title on type link, got number" (also boolean/object) for a bad title in a step's mark field and in a slice node's marks alike; a string title, a null title and an absent title (declared default) all parse.

Before: check_mark in collab_steps.rs validated only the link href (slice 7, #16400), so a link mark with title: 42 was stored, broadcast and Acked, then threw on every receiving client — the exact #1618 poison shape.

Change: check_mark now also refuses a present non-string, non-null link title (mark \link` needs a string or null `title` attr), in step marks and slice-node marks alike, all-or-nothing before storage/version/content-size/broadcast via the existing check_steps` path, for anonymous and authenticated senders alike. Module doc updated.

Tests (oracle = the schema-basic link mark spec):

  • link_mark_titles_must_be_strings_or_null — 6 refusal cases (numeric/boolean/object/array titles across addMark/removeMark/addNodeMark/slice marks) + 5 valid controls (string, null, absent title; strong mark; slice control).
  • test_apply_steps_rejects_link_mark_with_non_string_title in collab.rs — refusal leaves version/steps/content-size untouched and broadcasts nothing; string-title control accepted.

Both authored files are rustfmt-clean (edition 2024). Verification: fleet-command cargo test dispatch on the exact head; conclusion recorded on #1618 and here when it lands. The parent issue stays open for its remainder (full server-side transform application), as in slices 1–9.

Refs #1618.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@developing-today
id(web): refuse link marks with a non-string title (#1618 slice 10)
b6b7d91
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b8ff2271-91ea-43be-9fc0-96e003c59f97

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 28, 2026
id(web): collab server stores and broadcasts steps it never validates — one bad step poisons the document's history and loops every client #1618
Open
3 of 5 tasks
@developing-today-fleet

developing-today-fleet Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Agent note · verification evidence — lane 2252-I, #1618 slice 10

Fleet-command run 46110481931 (dezren39/fleet, dispatch_id 2252I-16434) — cargo test --manifest-path pkgs/id/Cargo.toml -p id-web --lib collab — completed success 2026-11-28: https://github.com/dezren39/fleet/actions/runs/46110481931

Log shows Target HEAD: b6b7d9160206c10632d422423a09db21f197c55f (exact PR head) and test result: ok. 87 passed; 0 failed, with both new tests named ok: collab_steps::tests::link_mark_titles_must_be_strings_or_null and collab::tests::test_apply_steps_rejects_link_mark_with_non_string_title. PR is CLEAN/MERGEABLE at that head; merging under standing merge authority with the head pinned.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot merged commit 5a4fd71 into main Nov 28, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot deleted the archer/2252i-1618-link-title branch November 28, 2026 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

0 participants

Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.