Skip to content

Fix referential integrity violation in team deletion#5402

Merged
nscuro merged 3 commits intoDependencyTrack:masterfrom
arjavdongaonkar:fix/team-delete
Oct 13, 2025
Merged

Fix referential integrity violation in team deletion#5402
nscuro merged 3 commits intoDependencyTrack:masterfrom
arjavdongaonkar:fix/team-delete

Conversation

@arjavdongaonkar
Copy link
Copy Markdown
Contributor

@arjavdongaonkar arjavdongaonkar commented Oct 13, 2025

Description

Fixed an internal server error occurring when invoking the team delete.
The error was caused by a referential integrity constraint violation between the NOTIFICATIONRULE_TEAMS and TEAM tables during team deletion.

Addressed Issue

Fixes #5222

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have added corresponding update logic
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

@owasp-dt-bot
Copy link
Copy Markdown

owasp-dt-bot commented Oct 13, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@nscuro nscuro added this to the 4.14.0 milestone Oct 13, 2025
@nscuro nscuro added defect Something isn't working backport/4.13.6 PRs to be backported to v4.13.6 hacktoberfest-accepted Accepted Hacktoberfest contributions labels Oct 13, 2025
@codacy-production
Copy link
Copy Markdown

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: -1.00%) 100.00% (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (db4c4d1) 24076 19474 80.89%
Head commit (aa5956e) 24078 (+2) 19476 (+2) 80.89% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#5402) 2 2 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@nscuro nscuro changed the title Fix/team delete Fix referential integrity violation in team deletion Oct 13, 2025
@nscuro nscuro merged commit db71988 into DependencyTrack:master Oct 13, 2025
11 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/4.13.6 PRs to be backported to v4.13.6 defect Something isn't working hacktoberfest-accepted Accepted Hacktoberfest contributions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot delete a team if it's part of notification rule

3 participants