gnodet-bot commented on code in PR #31272:
URL: https://github.com/apache/camel/pull/31272#discussion_r4771035479
##########
components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/SalesforceSecurityHandler.java:
##########
@@ -69,6 +72,16 @@ public SalesforceSecurityHandler(SalesforceHttpClient
httpClient) {
this.maxContentLength = httpClient.getMaxContentLength();
}
+ /**
+ * Marks a login or logout request of the session, which must not trigger
another login: the session waits for the
+ * response while it holds the lock that login needs.
+ */
+ public static void markSessionRequest(Request request) {
Review Comment:
🔍 **Silent no-op when `request` is not an `HttpRequest`.** The `instanceof`
guard silently does nothing if the cast fails. In practice, Jetty's
`httpClient.POST()` / `newRequest()` always returns `HttpRequest`, so this is
currently safe — but a future Jetty API change could silently break the
session-loop guard with no warning. Consider logging a warning (or throwing
`IllegalStateException`) when the guard is not satisfied, to surface misuse
early. Low severity.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]