Skip to content

Backport: Check for non-empty timestamp files in doDownload of NistMirrorTask#5354

Merged
nscuro merged 1 commit intoDependencyTrack:4.13.xfrom
nscuro:backport-pr-5323
Sep 29, 2025
Merged

Backport: Check for non-empty timestamp files in doDownload of NistMirrorTask#5354
nscuro merged 1 commit intoDependencyTrack:4.13.xfrom
nscuro:backport-pr-5323

Conversation

@nscuro
Copy link
Copy Markdown
Member

@nscuro nscuro commented Sep 29, 2025

Description

Checks for non-empty timestamp files in doDownload of NistMirrorTask.

Addressed Issue

Fixes #5322
Backports #5323

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

In the rare case that a timestamp file (.ts) is empty due to a
crash or other ungraceful shutdown, the affected file will be
read and parsed which causes an exception to be thrown. This
would happen every time the task runs and thus not self correct.
This fix will make sure the empty/corrupted .ts files are
overwritten and the corresponding file is reacquired.

Signed-off-by: jonbally <[email protected]>
@nscuro nscuro added this to the 4.13.5 milestone Sep 29, 2025
@nscuro nscuro added the defect Something isn't working label Sep 29, 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)

@codacy-production
Copy link
Copy Markdown

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: -1.00%) 0.00% (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (fba9924) 23970 19329 80.64%
Head commit (7088a02) 23970 (+0) 19329 (+0) 80.64% (+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 (#5354) 3 0 0.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 merged commit 5c463b5 into DependencyTrack:4.13.x Sep 29, 2025
7 of 8 checks passed
@nscuro nscuro deleted the backport-pr-5323 branch September 29, 2025 20:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

defect Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants