Repository navigation
Conversation
Make `noteId` a required parameter in `DeleteBlockHandler` to prevent callers from omitting it and bypassing note ownership validation. Updated `blockEditor.js` to send `noteId` in DELETE requests, and updated tests to verify the enforced validation. Co-authored-by: egeozcan <185294+egeozcan@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
…ired noteId The CLI delete command, the e2e API client and several tests called DELETE /v1/note/block without noteId and would now get 400. mr note-block delete takes a required --note-id, the OpenAPI spec and docs mark noteId required, the POST form route is covered, and public/dist is rebuilt so the block editor ships the noteId it already sends in source. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Review and fixes (pushed as 79eafe3; base was already current master, no rebase needed). Findings, all fixed:
Checked, no change needed: a scoped principal gets 404 from GetBlock/DeleteBlock via NoteVisible; a block's note_id is immutable so the check-then-delete has no race, and no Postgres-specific behaviour. Overlap with #73: it edits the same handler (DeleteBlockHandler and the Update/State handlers), |
Acknowledged. I see that the necessary fixes for the CLI, OpenAPI spec, E2E client, and tests have been pushed directly. Since this comment is informational and closes out the work with the mentioned fixes, no further action is required from me at this time. I am stopping work on this task. |
Make `noteId` a required parameter in `DeleteBlockHandler` to prevent callers from omitting it and bypassing note ownership validation. Updated `blockEditor.js` to send `noteId` in DELETE requests, and updated tests to verify the enforced validation. Co-authored-by: egeozcan <185294+egeozcan@users.noreply.github.com>
|
Closing: superseded by #73 (merged), which requires noteId on all block mutation handlers including DeleteBlock. |
Understood. Acknowledging that this work is now obsolete and stopping work on this task. |
Fixes a vulnerability where
DeleteBlockAPI callers could bypass the parent note context verification by omittingnoteIdin the request parameters.PR created automatically by Jules for task 2895326477337872354 started by @egeozcan