Skip to content

Route the v3 notes list through the shared note-visibility helper - #15985

Merged
Maffooch merged 1 commit into
DefectDojo:bugfixfrom
svader0:harden-api-v3-note-visibility
Sep 17, 2026
Merged

Maffooch merged 1 commit into
DefectDojo:bugfixfrom
svader0:harden-api-v3-note-visibility

Conversation

@svader0

@svader0 svader0 commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Hardening / consistency improvement to the API v3 sub-resource reads. The notes list now applies the same shared visibility helper the rest of the codebase already uses, so every read path agrees. Adds regression tests across all three parent resources.

An existing test asserted the older behaviour and is inverted to match. No functional change for a note's own author or for a superuser.

The v3 notes sub-resource read the parent relation directly. Its comment
said it mirrored v2, but v2 has routed note reads through visible_notes()
since 3.2.100, so the two paths disagreed on what private means.

The existing privacy test asserted the older behaviour and is inverted
here, and the rule is now checked on all three parents plus the envelope
count.
@Maffooch Maffooch added this to the 3.3.200 milestone Sep 17, 2026
@Maffooch
Maffooch added this pull request to the merge queue Sep 17, 2026
Merged via the queue into DefectDojo:bugfix with commit 3cf0aaa Sep 17, 2026
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants