davsclaus opened a new pull request, #3249:
URL: https://github.com/apache/camel-kamelets/pull/3249

   Fixes #3248.
   
   `azure-functions-sink` always sends the function key in the 
`x-functions-key` header. The `keyInHeader` option from #3218 is removed: it 
was added on main for 4.24 and has not been released, so no configuration has 
to change.
   
   ### What changed
   - **Template:** when `key` is set, a `choice` with `precondition: true` sets 
`x-functions-key` and calls `vertx-http` inside a `doTry`. Its `doFinally` 
removes the header, so the key does not stay on the message after the call, 
also when the call fails and the message goes on to an error handler. Without 
`key`, the Kamelet calls the function with no key, as before. The `code` query 
parameter is no longer used.
   - **Description, `key` property, docs partial:** say that the key goes in 
the header and is removed afterwards. The `keyInHeader` example is gone.
   
   ### Tests
   `HttpKameletsTargetTest`, against a local HTTP server:
   - the key arrives in `x-functions-key`, no `code` query, and the header is 
not on the message afterwards;
   - without `key`: no query and no header;
   - a 404: the error message does not contain the key, and the failed message 
has no `x-functions-key` header. Without the `doFinally`, this test fails.
   
   `KameletsRemoveHeadersTest` and `KameletsSecretsRawTest` pass as well. 
`./mvnw clean install` regenerated the library copy and `kamelets-index.json`.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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]

Reply via email to