Skip to content

Scope endpoint delete and rename to the requesting product - #15743

Open
svader0 wants to merge 1 commit into
DefectDojo:bugfixfrom
svader0:fix/location-reference-scoped-writes
Open

Scope endpoint delete and rename to the requesting product#15743
svader0 wants to merge 1 commit into
DefectDojo:bugfixfrom
svader0:fix/location-reference-scoped-writes

Conversation

@svader0

@svader0 svader0 commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Hardening and consistency improvement to endpoint delete and rename under the V3 Locations feature.

A Location row is deduplicated across every product that records the same value, so acting on the row itself reaches beyond the requesting product. Delete now removes the requesting product's own references and drops the row only once nothing references it. A rename is refused while another product still records that value. The bulk delete follows the same rule.

Adds a regression test. No functional change for a product that is the only one recording the value.

…oduct

A Location row is deduplicated across every product that records the same value.
Deleting the row removed it from products the caller has no rights over, and a
rename rewrote the value those products see. Delete now removes the requesting
product's own references and drops the row only once nothing references it, and
a rename is refused while another product still records the value.
@Maffooch Maffooch added this to the 3.2.300 milestone Aug 20, 2026
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