Skip to content

Commit

Permalink
fixing registering new assets and oferflow on modals
Browse files Browse the repository at this point in the history
  • Loading branch information
siewer committed Jul 31, 2024
1 parent d1bf8cf commit a1ebf58
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.springframework.transaction.annotation.Transactional;

import java.io.IOException;
import java.net.ConnectException;
import java.security.*;
import java.security.cert.CertificateException;
import java.util.ArrayList;
Expand Down Expand Up @@ -162,7 +163,11 @@ public List<Projects> getOpenSourceProjectFromScanner() throws CertificateExcept
public boolean createProjectOnOpenSourceScanner(CodeProject codeProject) throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyManagementException, KeyStoreException, IOException {
for (OpenSourceScanClient openSourceScanClient : openSourceScanClients){
if (openSourceScanClient.canProcessRequest()){
return openSourceScanClient.createProject(codeProject);
try {
return openSourceScanClient.createProject(codeProject);
} catch (Exception connectException){
log.error("[OpenSoourceScanSercivice] Error during creating Project on remote SCA for {} - {}", codeProject.getName(), connectException.getLocalizedMessage());
}
}
}
return false;
Expand Down

0 comments on commit a1ebf58

Please sign in to comment.