[
https://issues.apache.org/jira/browse/CAMEL-27832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27832:
--------------------------------
Description:
Found while improving the option descriptions of camel-splunk-hec for
CAMEL-23832 (commit
https://github.com/apache/camel/commit/ed21c0d35408d9c8fd340e12eb3bac97d585474f,
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_
was:
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_
> 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
> Priority: Minor
> Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-splunk-hec for
> CAMEL-23832 (commit
> https://github.com/apache/camel/commit/ed21c0d35408d9c8fd340e12eb3bac97d585474f,
> 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)