From 6cb9f337edee4037d57c34861550dc4ca7323942 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 11 Feb 2023 07:55:29 -0500 Subject: [PATCH] fix: correctly return update status in KnownExploitedDataSource (#5441) --- .../dependencycheck/data/update/KnownExploitedDataSource.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/owasp/dependencycheck/data/update/KnownExploitedDataSource.java b/core/src/main/java/org/owasp/dependencycheck/data/update/KnownExploitedDataSource.java index 104988210db..459af715d94 100644 --- a/core/src/main/java/org/owasp/dependencycheck/data/update/KnownExploitedDataSource.java +++ b/core/src/main/java/org/owasp/dependencycheck/data/update/KnownExploitedDataSource.java @@ -86,13 +86,14 @@ public boolean update(Engine engine) throws UpdateException { } //all dates in the db are now stored in seconds as opposed to previously milliseconds. dbProperties.save(DatabaseProperties.KEV_LAST_CHECKED, Long.toString(System.currentTimeMillis() / 1000)); + return true; } } catch (TooManyRequestsException | ResourceNotFoundException | IOException | CorruptedDatastreamException | DatabaseException | SQLException ex) { throw new UpdateException(ex); } } - return true; + return false; } @Override