From: Jacek Date: Tue, 9 Jun 2020 13:35:11 +0000 (+0200) Subject: SONAR-13398 fail with 503 api/security_reports/show WS if needIssueSync is set to... X-Git-Tag: 8.4.0.35506~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=40a4dfb22408fe40ec881f5d3eca5eb5eb3eee15;p=sonarqube.git SONAR-13398 fail with 503 api/security_reports/show WS if needIssueSync is set to true --- diff --git a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndexSyncProgressChecker.java b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndexSyncProgressChecker.java index 0b0fbab5ed8..b638e3ba2cf 100644 --- a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndexSyncProgressChecker.java +++ b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndexSyncProgressChecker.java @@ -55,7 +55,11 @@ public class IssueIndexSyncProgressChecker { } public void checkIfComponentNeedIssueSync(DbSession dbSession, String componentKey) { - checkIfAnyComponentsNeedIssueSync(dbSession, Collections.singletonList(componentKey), null, null); + checkIfComponentNeedIssueSync(dbSession, componentKey, null); + } + + public void checkIfComponentNeedIssueSync(DbSession dbSession, String componentKey, @Nullable String branchKey) { + checkIfAnyComponentsNeedIssueSync(dbSession, Collections.singletonList(componentKey), branchKey, null); } /**