oscerd opened a new pull request, #25181:
URL: https://github.com/apache/camel/pull/25181
Backport of #25179 to `camel-4.14.x` (→ 4.14.9).
`GoogleCloudStorageConsumer` builds the local download destination by
appending the remote object
name to the configured `downloadFileName` directory via the `${file:name}`
token, which returns the
name unchanged. A remote object name containing path segments could
therefore resolve outside the
configured directory. The same code is present on this branch
(`GoogleCloudStorageConsumer.java:303`,
`:357`), so the change applies here as well.
Cherry-pick of `331dc67f` with two branch adjustments:
* the new test uses `org.apache.camel.test.junit5.CamelTestSupport` — this
branch is on
`camel-test-junit5`, whereas `main` has moved to `camel-test-junit6`;
* the upgrade-guide note goes to `camel-4x-upgrade-guide-4_14.adoc` instead
of the `4_22` guide.
Per the backport upgrade-guide policy, the matching note will also be added
to `main`'s copy of
`camel-4x-upgrade-guide-4_14.adoc` in a follow-up doc-sync PR.
Validated on this branch: full `camel-google-storage` module suite green (25
tests), including the
13 new ones and the pre-existing `ConsumerDownloadLocalTest`.
_Claude Code on behalf of oscerd_
--
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]