Skip to content

Commit 8eb1af5

Browse files
committed
fix: prevent race condition when processing the monitoring context
Signed-off-by: Ruben Romero Montes <[email protected]>
1 parent 787d2f5 commit 8eb1af5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/redhat/exhort/integration/backend/ExhortIntegration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ public void configure() {
160160
.routeId("dependencyAnalysis")
161161
.to(direct("preProcessAnalysisRequest"))
162162
.process(this::processAnalysisRequest)
163+
.to(direct("analyticsIdentify"))
163164
.to(direct("analyzeSbom"))
164165
.to(direct("report"))
165166
.to(direct("postProcessAnalysisRequest"));
@@ -168,6 +169,7 @@ public void configure() {
168169
.routeId("batchDependencyAnalysis")
169170
.to(direct("preProcessAnalysisRequest"))
170171
.process(this::processBatchAnalysisRequest)
172+
.to(direct("analyticsIdentify"))
171173
.to(direct("analyzeSboms"))
172174
.to(direct("batchReport"))
173175
.to(direct("postProcessAnalysisRequest"));
@@ -197,7 +199,6 @@ public void configure() {
197199
.when(header(Exchange.CONTENT_ENCODING).isEqualToIgnoreCase(GZIP_ENCODING)).unmarshal().gzipDeflater()
198200
.setProperty(Constants.GZIP_RESPONSE_PROPERTY, constant(Boolean.TRUE))
199201
.end()
200-
.to(direct("analyticsIdentify"))
201202
.setProperty(PROVIDERS_PARAM, method(vulnerabilityProvider, "getProvidersFromQueryParam"))
202203
.setProperty(REQUEST_CONTENT_PROPERTY, method(BackendUtils.class, "getResponseMediaType"))
203204
.setProperty(VERBOSE_MODE_HEADER, header(VERBOSE_MODE_HEADER));

0 commit comments

Comments
 (0)