Claus Ibsen created CAMEL-26201:
-----------------------------------
Summary: camel-crypto - with stream caching off, signing reads and
closes a stream body: the next step gets an empty body
Key: CAMEL-26201
URL: https://issues.apache.org/jira/browse/CAMEL-26201
Project: Camel
Issue Type: Bug
Components: camel-crypto
Reporter: Claus Ibsen
Fix For: 4.24.0
Found while adding the catalog body types of crypto (CAMEL-24961, PR #28416).
h4. 1. A stream body is consumed by sign and verify
{{DigitalSignatureProcessor.calculateSignature}} (main 2a465aa4814c, line 41 to
53), used by sign and verify, reads the body as an InputStream and closes it.
With stream caching off, the body is a plain stream that cannot be read again,
so the next step of the route gets an empty body. Checked on 4.24.0-SNAPSHOT
with in-memory key pairs and stream caching turned off.
Proposed: cache the stream (or reset it when it is a StreamCache) and put it
back as the body after reading.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)