Claus Ibsen created CAMEL-27832:
-----------------------------------

             Summary: camel-splunk-hec: useGlobalSslContextParameters is never 
used
                 Key: CAMEL-27832
                 URL: https://issues.apache.org/jira/browse/CAMEL-27832
             Project: Camel
          Issue Type: Bug
          Components: camel-splunk-hec
            Reporter: Claus Ibsen
             Fix For: 4.25.0


Found while improving the option descriptions of camel-splunk-hec for 
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31141).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. useGlobalSslContextParameters is never used
The component never calls retrieveGlobalSslContextParameters(); with 
useGlobalSslContextParameters=true and no endpoint or component 
sslContextParameters, {{SplunkHECEndpoint.provideSSLContext}} returns null and 
the producer uses the JVM default SSL context, not the global one.
Proposed change: fall back to 
getComponent().retrieveGlobalSslContextParameters().

h4. 2. The Authorization header has a leading space
{{SplunkHECProducer.process}} sets " Splunk " + token. Splunk accepts it, so 
this is cosmetic.
Proposed change: drop the leading space.


_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to