fix: OSS Index Analyzer SocketTimeoutException exception handling based on warn only parameter#5845
Merged
aikebah merged 2 commits intodependency-check:mainfrom Jul 29, 2023
Conversation
OSS Index sockettimeout handling
Contributor
Author
|
added |
Collaborator
make sure to not add a leading space in the process next time ;) |
aikebah
reviewed
Jul 28, 2023
this.setEnabled(false);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Issue
When OSS Index is down and not responding on its TCP socket, a
SocketTimeoutExceptionis thrown by the analyzer regardless of theANALYZER_OSSINDEX_WARN_ONLY_ON_REMOTE_ERRORSsetting.I encountered this issue this morning in
8.3.1:Description of Change
This PR will use the
ANALYZER_OSSINDEX_WARN_ONLY_ON_REMOTE_ERRORSto determine whether an error or warning should be returned in the event of OSS Index causing aSocketTimeoutExceptionto be raised.Have test cases been added to cover the new functionality?
yes
Thanks for all of your awesome work on Dependency check!