Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knative component filters out all headers #118

Closed
nicolaferraro opened this issue Jul 26, 2019 · 2 comments · Fixed by #120
Closed

Knative component filters out all headers #118

nicolaferraro opened this issue Jul 26, 2019 · 2 comments · Fixed by #120
Assignees

Comments

@nicolaferraro
Copy link
Member

Consider the following integration sending data to a channel:

from('timer:clock?period=3s')
	.setBody().constant("Hello World from Camel K")
	.setHeader('CamelCippaLippa').constant('42')
	.to('log:info?showHeaders=true')
	.to('knative:channel/messages')
	.to('log:info?showHeaders=true')
	.log('sent message to messages channel')

This is the output log:

2019-07-26 10:57:00.318 �[32mINFO �[m [Camel (camel-k) thread #2 - timer://clock] info - Exchange[ExchangePattern: InOnly, Headers: {CamelCippaLippa=42, firedTime=Fri Jul 26 10:57:00 UTC 2019}, BodyType: String, Body: Hello World from Camel K]
2019-07-26 10:57:00.323 �[32mINFO �[m [Camel Thread #3 - NettyClientTCPWorker] info - Exchange[ExchangePattern: InOnly, Headers: {CamelHttpResponseCode=202, CamelHttpResponseText=Accepted, Content-Length=0, Date=Fri, 26 Jul 2019 10:57:00 GMT}, BodyType: byte[], Body: ]
2019-07-26 10:57:00.323 �[32mINFO �[m [Camel Thread #3 - NettyClientTCPWorker] route1 - sent message to messages channel

The CamelCippaLippa header is deleted after passing from the knative endpoint.

@oscerd
Copy link
Contributor

oscerd commented Jul 26, 2019

It's netty-http4 component which filter out everything starting with Camel

@lburgazzoli lburgazzoli self-assigned this Jul 26, 2019
@lburgazzoli
Copy link
Contributor

lburgazzoli commented Jul 26, 2019

I'm going to add options to configure the underlying transport used by the knative component so one can configure the header filter strategy according to the needs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants