Skip to content

Backport: Fix NEW_VULNERABILITIES_SUMMARY notification dispatch failing for PostgreSQL#4859

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

Backport: Fix NEW_VULNERABILITIES_SUMMARY notification dispatch failing for PostgreSQL#4859
nscuro merged 1 commit intoDependencyTrack:4.13.xfrom
nscuro:backport-pr-4829

Conversation

@nscuro
Copy link
Copy Markdown
Member

@nscuro nscuro commented Apr 18, 2025

Description

Fixes NEW_VULNERABILITIES_SUMMARY notification dispatch failing for PostgreSQL.

Addressed Issue

Fixes #4827
Backports #4829

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

…ostgreSQL

The PostgreSQL JDBC driver does not accept `java.util.Date` (or subclasses of it) as query parameter, while H2 and MSSQL do.

Converting the respective date parameter to `java.sql.Timestamp` works with all JDBC drivers.

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro added the defect Something isn't working label Apr 18, 2025
@nscuro nscuro added this to the 4.13.1 milestone Apr 18, 2025
@codacy-production
Copy link
Copy Markdown

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for 46f3fd81 100.00% (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (46f3fd8) Report Missing Report Missing Report Missing
Head commit (e7c42e8) 23973 19317 80.58%

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 (#4859) 1 1 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

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

@nscuro nscuro merged commit 5e822c5 into DependencyTrack:4.13.x Apr 19, 2025
7 checks passed
@nscuro nscuro deleted the backport-pr-4829 branch April 30, 2025 09:05
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 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.

1 participant