aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-es
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2020-06-09 15:35:11 +0200
committersonartech <sonartech@sonarsource.com>2020-06-26 20:04:57 +0000
commit40a4dfb22408fe40ec881f5d3eca5eb5eb3eee15 (patch)
treeb9ef38160bb1b9b0a8e117ea3a743f35346ac23d /server/sonar-webserver-es
parent6c80b0ffedebf950de66f93f18d5165097904088 (diff)
downloadsonarqube-40a4dfb22408fe40ec881f5d3eca5eb5eb3eee15.tar.gz
sonarqube-40a4dfb22408fe40ec881f5d3eca5eb5eb3eee15.zip
SONAR-13398 fail with 503 api/security_reports/show WS if needIssueSync is set to true
Diffstat (limited to 'server/sonar-webserver-es')
-rw-r--r--server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndexSyncProgressChecker.java6
1 files changed, 5 insertions, 1 deletions
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);
}
/**