Andrea Cosentino created CAMEL-27101:
----------------------------------------
Summary: CloudEvent data type transformers - the source of
azure-storage-queue, azure-storage-blob, google-pubsub and
google-calendar-stream events is a value of each message
Key: CAMEL-27101
URL: https://issues.apache.org/jira/browse/CAMEL-27101
Project: Camel
Issue Type: Bug
Components: camel-google-calendar, camel-azure, camel-google-pubsub
Reporter: Andrea Cosentino
Follow-up of CAMEL-26300 ([PR
#29216|https://github.com/apache/camel/pull/29216]), raised in its review. The
SQS transformer took the receipt handle of each message as the CloudEvent
source, and now takes the queue name.
In CloudEvents the source is the context in which the event happened, and the
source and the id together identify an event. Four transformers still take a
value of each message (main 73fe55b4f931):
* azure-storage-queue ({{AzureStorageQueueCloudEventDataTypeTransformer}}, line
54): {{azure.storage.queue.}} and the message id;
* azure-storage-blob ({{AzureStorageBlobCloudEventDataTypeTransformer}}, line
54): {{azure.storage.blob.}} and the ETag of the blob;
* google-pubsub ({{GooglePubsubCloudEventDataTypeTransformer}}, line 53):
{{google.pubsub.}} and the ack id;
* google-calendar-stream
({{GoogleCalendarStreamCloudEventDataTypeTransformer}}, line 66):
{{google.calendar.stream.}} and the event id.
So every event has its own source. The contexts are the queue, the container,
the subscription (or topic) and the calendar, as the S3 (bucket), SQS (queue),
Google Storage (bucket) and Google Sheets (spreadsheet) transformers use.
Others may be worth a look at the same time: azure-storage-datalake takes the
archive status of the file, azure-servicebus and aws2-kinesis the partition key
that the sender sets, and google-mail-stream the address of the sender.
A changed source needs an upgrade guide entry, and the Kamelets that document
these headers need the same change.
_Claude Code on behalf of Andrea Cosentino (oscerd)_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)