davsclaus opened a new pull request, #3267:
URL: https://github.com/apache/camel-kamelets/pull/3267
Backport of #3259 to `4.18.x`, for #3189.
### Changes
`aws-s3-event-based-source` and `google-storage-event-based-source`, with
`getObject`, put the name of the object of the event into the endpoint address
of the call that reads it. A name with `&`, `+` or `=` was cut or changed, so
the file was not found or the endpoint could not be created.
- The object name now goes in the header of the component (`CamelAwsS3Key`,
`CamelGoogleCloudStorageObjectName`), which Camel 4.18.3 reads as it is.
- The other `CamelAwsS3*` / `CamelGoogleCloudStorage*` headers are removed
before the call.
- The S3 source calls a bucket only when its name is a valid bucket name.
The Google Cloud Storage source uses a fixed
`google-storage:{{bucketNameOrArn}}` endpoint, as it only reads events of that
bucket.
### Differences from #3259
- Ported by hand: `4.18.x` uses the short YAML DSL form and has fewer
endpoint options (no credentials provider, session token or proxy options), so
the change keeps the endpoint of `4.18.x` and only moves the object name to the
header.
- `ceph-event-based-source` is not on `4.18.x`, so its Kamelet change and
its test are left out.
### Tests
- The Citrus test `aws-s3-event-based-source-get-object` from #3259 is
included.
- Locally (on 4.22.x): `./mvnw -pl library/camel-kamelets-catalog -am
verify` passes (18 catalog tests).
_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]