Skip to content

Backport: Improve the stability of tag binding#4885

Merged
nscuro merged 1 commit intoDependencyTrack:4.13.xfrom
nscuro:backport-pr-4882
Apr 27, 2025
Merged

Backport: Improve the stability of tag binding#4885
nscuro merged 1 commit intoDependencyTrack:4.13.xfrom
nscuro:backport-pr-4882

Conversation

@nscuro
Copy link
Copy Markdown
Member

@nscuro nscuro commented Apr 27, 2025

Description

Improves the stability of tag binding.

This is mostly a preventative change than one based on actual issues encountered.

Removing from a collection that is being iterated over is not supported and should usually lead to a ConcurrentModificationException being thrown. Using an Iterator prevents this from happening.

Addressed Issue

Backports #4882

Additional Details

N/A

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

This is mostly a preventative change than one based on actual issues encountered.

Removing from a collection that is being iterated over is not supported and should usually lead to a `ConcurrentModificationException` being thrown. Using an `Iterator` prevents this from happening.

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro added this to the 4.13.1 milestone Apr 27, 2025
@owasp-dt-bot
Copy link
Copy Markdown

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

security/snyk check is complete. No issues have been found. (View Details)

@nscuro nscuro changed the title Improve the stability of tag binding Backport: Improve the stability of tag binding Apr 27, 2025
@codacy-production
Copy link
Copy Markdown

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.03% (target: -1.00%) 91.67% (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (fba61a3) 23968 19319 80.60%
Head commit (7f629c0) 23974 (+6) 19317 (-2) 80.57% (-0.03%)

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 (#4885) 12 11 91.67%

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 merged commit adb5ca5 into DependencyTrack:4.13.x Apr 27, 2025
8 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants